mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
queue event instead of immediately fire
created checks to see if parser is in use before event dispatch changed tests to expect crash and added async style test
This commit is contained in:
parent
462409ada5
commit
79d896d474
9 changed files with 72 additions and 3 deletions
|
@ -0,0 +1,25 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<title>Style load event should be async</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
var t = async_test("style load should be async");
|
||||
var sync = true;
|
||||
function check() {
|
||||
assert_false(sync);
|
||||
t.done();
|
||||
}
|
||||
</script>
|
||||
<style onload="t.step(check)">
|
||||
</style>
|
||||
<script>
|
||||
sync = false
|
||||
</script>
|
||||
|
||||
<body>
|
||||
<div id="log"></div>
|
||||
<div id="test"></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue