mirror of
https://github.com/servo/servo.git
synced 2025-07-02 21:13:39 +01:00
Update web-platform-tests to revision 5a754b40cd49c0404863c431b58cc311dc5d167c
This commit is contained in:
parent
8950345e0e
commit
32efe41299
107 changed files with 4243 additions and 435 deletions
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE html>
|
||||
<title>HTMLBodyElement event handlers</title>
|
||||
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id="log"></div>
|
||||
<body>
|
||||
<script>
|
||||
function f() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
var handlers = ['blur','error','focus','load','resize','scroll',
|
||||
'afterprint','beforeprint','beforeunload','hashchange',
|
||||
'languagechange','message','offline','online','pagehide',
|
||||
'pageshow','popstate','storage','unload'];
|
||||
handlers.forEach(function(handler) {
|
||||
test(function() {
|
||||
document.body['on' + handler] = f;
|
||||
assert_equals(window['on' + handler], f);
|
||||
}, handler);
|
||||
});
|
||||
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue