diff options
author | Jack Moffitt <jack@metajack.im> | 2014-08-28 09:34:23 -0600 |
---|---|---|
committer | Jack Moffitt <jack@metajack.im> | 2014-09-08 20:21:42 -0600 |
commit | c6ab60dbfc6da7b4f800c9e40893c8b58413960c (patch) | |
tree | d1d74076cf7fa20e4f77ec7cb82cae98b67362cb /tests/html/test_UIEvent_resize.html | |
parent | db2f642c32fc5bed445bb6f2e45b0f6f0b4342cf (diff) | |
download | servo-c6ab60dbfc6da7b4f800c9e40893c8b58413960c.tar.gz servo-c6ab60dbfc6da7b4f800c9e40893c8b58413960c.zip |
Cargoify servo
Diffstat (limited to 'tests/html/test_UIEvent_resize.html')
-rw-r--r-- | tests/html/test_UIEvent_resize.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/html/test_UIEvent_resize.html b/tests/html/test_UIEvent_resize.html new file mode 100644 index 00000000000..a9d21ad07db --- /dev/null +++ b/tests/html/test_UIEvent_resize.html @@ -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> |