/
githubmirror
/
servo
Обзор
Документация
Войти
/
githubmirror
/
servo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/html/test_UIEvent_resize.html
23 строки
795 B
Anthony Ramine
Fix all the links to the UI Events spec
04 июн 2016, 17:04
04 июн 2016, 17:04
be334ef
Код
Авторство
О чём код?
<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>