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:
ddh 2017-11-20 23:07:10 +00:00
parent 462409ada5
commit 79d896d474
9 changed files with 72 additions and 3 deletions

View file

@ -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>