Ensure that base_multiple.html fails rather than times out in the typical failure case.

This commit is contained in:
Ms2ger 2016-02-05 12:12:54 +01:00 committed by Josh Matthews
parent 0f383a50a1
commit 6ce5b7527a
2 changed files with 5 additions and 4 deletions

View file

@ -1,6 +1,5 @@
[base_multiple.html]
type: testharness
expected: TIMEOUT
[The attributes of the a element must be affected by the first base element]
expected: NOTRUN
expected: FAIL

View file

@ -12,6 +12,9 @@
<script>
async_test(function() {
window.onload = this.step_func(function() {
var fr1 = document.getElementById("test1");
fr1.addEventListener("load", this.unreached_func("loaded in the wrong iframe"));
var fr2 = document.getElementById("test2");
fr2.addEventListener("load", this.step_func_done(function () {
var doc2 = fr2.contentDocument;
@ -19,8 +22,7 @@
assert_equals(doc2.getElementById("d1").innerHTML, "PASS", "The opend page should be the example2.html.");
}), true);
var doc1 = document.getElementById("test1").contentDocument;
doc1.getElementById("a1").click();
fr1.contentDocument.getElementById("a1").click();
});
}, "The attributes of the a element must be affected by the first base element");
</script>