diff --git a/dom/flex/test/chrome/test_flex_items.html b/dom/flex/test/chrome/test_flex_items.html index d2b6e7533861..c830a9a718fc 100644 --- a/dom/flex/test/chrome/test_flex_items.html +++ b/dom/flex/test/chrome/test_flex_items.html @@ -11,9 +11,8 @@ font: 14px sans-serif; height: 50px; } - .huge { - /* This just needs to be large enough so that no shrinking is required - inside the flex container that uses this class. */ + #flex-sanity { + /* This just needs to be large enough so that no shrinking is required. */ width: 1600px; } @@ -56,10 +55,6 @@ function testItemMatchesExpectedValues(item, values, index) { is(item.node, values.node, "Item index " + index + " has expected node."); } - if (typeof(values.node_todo) != "undefined") { - todo_is(item.node, values.node_todo, "Item index " + index + " has expected node."); - } - if (typeof(values.mainBaseSize) != "undefined") { is(item.mainBaseSize, values.mainBaseSize, "Item index " + index + " has expected mainBaseSize."); } @@ -95,8 +90,8 @@ function testItemMatchesExpectedValues(item, values, index) { } } -function runTests() { - let container = document.getElementById("wrapper"); +function testFlexSanity() { + let container = document.getElementById("flex-sanity"); let flex = container.getAsFlexContainer(); let lines = flex.getLines(); is(lines.length, 1, "Container should have expected number of lines."); @@ -183,14 +178,23 @@ function runTests() { // actual size minus the base size. isfuzzy(items[0].mainDeltaSize, firstRect.width - items[0].mainBaseSize, 1e-4, "flex-grow item should have expected mainDeltaSize."); +} +function runTests() { + testFlexSanity(); SimpleTest.finish(); }
-