mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Ensure that base_multiple.html fails rather than times out in the typical failure case.
This commit is contained in:
parent
0f383a50a1
commit
6ce5b7527a
2 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue