diff --git a/layout/style/test/ccd-quirks.html b/layout/style/test/ccd-quirks.html index 43dea13d4ef..f12204a2d4b 100644 --- a/layout/style/test/ccd-quirks.html +++ b/layout/style/test/ccd-quirks.html @@ -61,45 +61,31 @@ p + p { left: 22px } - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -135,5 +121,4 @@ for (var i = 0; i < links.length; i++) {

- diff --git a/layout/style/test/ccd-standards.html b/layout/style/test/ccd-standards.html index 2e1ba72f13a..ae6f443a271 100644 --- a/layout/style/test/ccd-standards.html +++ b/layout/style/test/ccd-standards.html @@ -60,45 +60,31 @@ p + p { left: 22px } - - - - - - - - - - - - - - - - - - - - - - - - -
diff --git a/layout/style/test/test_css_cross_domain.html b/layout/style/test/test_css_cross_domain.html index f71e817640f..055398dec68 100644 --- a/layout/style/test/test_css_cross_domain.html +++ b/layout/style/test/test_css_cross_domain.html @@ -79,18 +79,8 @@ /** Test for Bug 524223 **/ function check_iframe(ifr) { var doc = ifr.contentDocument; - var i; - - // Check that all links have in fact either loaded or errored. - // Doesn't seem to be possible to do this for @import, but this is - // just a diagnostic, anyway. See corresponding code in ccd-*.html. - var links = doc.getElementsByTagName("link"); - for (i = 0; i < links.length; i++) { - ok(links[i].dataset.completed, ifr.id + " " + links[i].href + " loaded"); - } - var cases = doc.getElementsByTagName("p"); - for (i = 0; i < cases.length; i++) { + for (var i = 0; i < cases.length; i++) { var color = doc.defaultView.getComputedStyle(cases[i], "") .getPropertyValue("background-color"); @@ -98,22 +88,10 @@ function check_iframe(ifr) { } } -var quirks = document.getElementById("quirks"); -var standards = document.getElementById("standards"); -var quirks_loaded = false; -var standards_loaded = false; - SimpleTest.waitForExplicitFinish(); - -quirks.onload = function() { quirks_loaded = true; } -standards.onload = function() { standards_loaded = true; } - window.onload = function() { - ok(quirks_loaded, "quirks frame loaded"); - ok(standards_loaded, "standards frame loaded"); - - check_iframe(quirks); - check_iframe(standards); + check_iframe(document.getElementById("quirks")); + check_iframe(document.getElementById("standards")); SimpleTest.finish(); };