mirror of
https://github.com/servo/servo.git
synced 2025-07-31 03:00:29 +01:00
Cargoify servo
This commit is contained in:
parent
db2f642c32
commit
c6ab60dbfc
1761 changed files with 8423 additions and 2294 deletions
23
tests/html/test_UIEvent_resize.html
Normal file
23
tests/html/test_UIEvent_resize.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<script src="../content/harness.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
window.addEventListener("resize", function (aEvent) {
|
||||
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#event-type-resize
|
||||
is_a(aEvent, UIEvent, "event should be UIEvent.");
|
||||
is(aEvent.bubbles, false, "Bubbles should be No.");
|
||||
is(aEvent.cancelable, false, "Cancelable should be No.");
|
||||
|
||||
is(aEvent.target, window, "Target should be defaultView.");
|
||||
is_a(aEvent.target, Window, "UIEvent.target should be instance of Window.");
|
||||
|
||||
//is(aEvent.view, document.defaultView, "UIEvent.view should be defaultView.");
|
||||
is_a(aEvent.view, Window, "UIEvent.view should be instance of Window.");
|
||||
is(aEvent.detail, 0, "UIEvent.detail should be 0.");
|
||||
}, false);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue