mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +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]
|
[base_multiple.html]
|
||||||
type: testharness
|
type: testharness
|
||||||
expected: TIMEOUT
|
|
||||||
[The attributes of the a element must be affected by the first base element]
|
[The attributes of the a element must be affected by the first base element]
|
||||||
expected: NOTRUN
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,9 @@
|
||||||
<script>
|
<script>
|
||||||
async_test(function() {
|
async_test(function() {
|
||||||
window.onload = this.step_func(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");
|
var fr2 = document.getElementById("test2");
|
||||||
fr2.addEventListener("load", this.step_func_done(function () {
|
fr2.addEventListener("load", this.step_func_done(function () {
|
||||||
var doc2 = fr2.contentDocument;
|
var doc2 = fr2.contentDocument;
|
||||||
|
@ -19,8 +22,7 @@
|
||||||
assert_equals(doc2.getElementById("d1").innerHTML, "PASS", "The opend page should be the example2.html.");
|
assert_equals(doc2.getElementById("d1").innerHTML, "PASS", "The opend page should be the example2.html.");
|
||||||
}), true);
|
}), true);
|
||||||
|
|
||||||
var doc1 = document.getElementById("test1").contentDocument;
|
fr1.contentDocument.getElementById("a1").click();
|
||||||
doc1.getElementById("a1").click();
|
|
||||||
});
|
});
|
||||||
}, "The attributes of the a element must be affected by the first base element");
|
}, "The attributes of the a element must be affected by the first base element");
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue