mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
correct failing tests
This commit is contained in:
parent
d7cb68cb84
commit
b1adf8ee8a
3 changed files with 11 additions and 4 deletions
|
@ -38,8 +38,9 @@
|
|||
assert_false(loaded);
|
||||
loaded = true;
|
||||
assert_true(document.getElementById("imgTestTag3").complete);
|
||||
var currentSrc = document.getElementById("imgTestTag3").currentSrc
|
||||
assert_equals(new URL(window.location.origin + "/" + currentSrc).pathname, "/3.jpg");
|
||||
var currentSrc = document.getElementById("imgTestTag3").currentSrc;
|
||||
var expectedUrl = new URL("3.jpg", window.location);
|
||||
assert_equals(new URL(currentSrc).pathname, expectedUrl.pathname);
|
||||
}, "Only one onload, despite setting the src twice");
|
||||
|
||||
document.getElementById("imgTestTag3").src = 'test' + Math.random();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue