mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
bdd5c96847
Source-Repo: https://github.com/servo/servo Source-Revision: 573c0a74684dc0043da4800a84065d72453641fd
24 lines
795 B
HTML
24 lines
795 B
HTML
<html>
|
|
<head>
|
|
<title></title>
|
|
<script src="../content/harness.js"></script>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
window.addEventListener("resize", function (aEvent) {
|
|
// http://dev.w3.org/csswg/cssom-view/#resizing-viewports
|
|
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>
|