Skip to content

Commit 61ff606

Browse files
Add note explaining IE6's test failure for position: fixed in layout.js.
1 parent 701fc70 commit 61ff606

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/unit/layout_test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ new Test.Unit.Runner({
121121
var viewportWidth = document.viewport.getWidth();
122122
var layout = $('box9').getLayout();
123123

124+
this.info("NOTE: IE6 WILL fail these tests because it doesn't support position: fixed. This is expected.");
125+
124126
function assertNear(v1, v2, message) {
125127
var abs = Math.abs(v1 - v2);
126128
this.assert(abs <= 1, message + ' (actual: ' + v1 + ', ' + v2 + ')');
@@ -132,7 +134,8 @@ new Test.Unit.Runner({
132134
assertNear.call(this, vWidth, eWidth, 'width (visible)');
133135

134136
$('box9').hide();
135-
assertNear.call(this, vWidth, $('box9').measure('width'), 'width (hidden)');
137+
assertNear.call(this, vWidth, $('box9').measure('width'), 'width (hidden)');
138+
$('box9').show();
136139
},
137140

138141
'test #toCSS, #toObject, #toHash': function() {

0 commit comments

Comments
 (0)