summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/dom/DeviceMotion/script-tests/create-event.js
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-09-07 16:06:44 +0100
committerSteve Block <steveblock@google.com>2010-09-07 16:36:45 +0100
commiteff69b907ef2cd3a9af0351287a929c66f58e3f6 (patch)
treec0d8835711b71631a15c3fb20d93c195ee3d5064 /LayoutTests/fast/dom/DeviceMotion/script-tests/create-event.js
parent66945f3db6c497fb182ef8a187b8c69e683dbb26 (diff)
downloadexternal_webkit-eff69b907ef2cd3a9af0351287a929c66f58e3f6.zip
external_webkit-eff69b907ef2cd3a9af0351287a929c66f58e3f6.tar.gz
external_webkit-eff69b907ef2cd3a9af0351287a929c66f58e3f6.tar.bz2
Adds a number of fast/ LayoutTest directories to the triaged set
Tests are added at r66079. All tests pass fast/constructors/ fast/cookies/ fast/dom/Attr/ fast/dom/CSSStyleDeclaration/ fast/dom/DOMImplementation/ fast/dom/DeviceMotion/ fast/dom/EntityReference/ fast/dom/HTMLAnchorElement/ fast/dom/HTMLButtonElement/ fast/dom/HTMLFontElement/ fast/dom/HTMLFormElement/ fast/dom/HTMLHtmlElement/ fast/dom/HTMLKeygenElement/ fast/dom/HTMLLabelElement/ fast/dom/HTMLMetaElement/ fast/dom/HTMLTableRowElement/ fast/dom/HTMLTableSectionElement/ fast/dom/Node/ fast/dom/NodeList/ fast/dom/Selection/ fast/dom/StyleSheet/ fast/dom/Text/ fast/dom/TreeWalker/ fast/dom/beforeload/ fast/dom/getElementsByClassName/ fast/leaks/ Change-Id: I9a2c401151f7abf5bb22b764b1327022ab651e04
Diffstat (limited to 'LayoutTests/fast/dom/DeviceMotion/script-tests/create-event.js')
-rw-r--r--LayoutTests/fast/dom/DeviceMotion/script-tests/create-event.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/LayoutTests/fast/dom/DeviceMotion/script-tests/create-event.js b/LayoutTests/fast/dom/DeviceMotion/script-tests/create-event.js
new file mode 100644
index 0000000..167329d
--- /dev/null
+++ b/LayoutTests/fast/dom/DeviceMotion/script-tests/create-event.js
@@ -0,0 +1,29 @@
+description("Tests that document.createEvent() works with DeviceMotinEvent.");
+
+var event = document.createEvent('DeviceMotionEvent');
+
+shouldBeTrue("typeof event == 'object'");
+
+shouldBeTrue("'type' in event");
+shouldBeTrue("'bubbles' in event");
+shouldBeTrue("'cancelable' in event");
+shouldBeTrue("'xAcceleration' in event");
+shouldBeTrue("'yAcceleration' in event");
+shouldBeTrue("'zAcceleration' in event");
+shouldBeTrue("'xRotationRate' in event");
+shouldBeTrue("'yRotationRate' in event");
+shouldBeTrue("'zRotationRate' in event");
+shouldBeTrue("'interval' in event");
+
+shouldBeTrue("typeof event.type == 'string'");
+shouldBeTrue("typeof event.bubbles == 'boolean'");
+shouldBeTrue("typeof event.cancelable == 'boolean'");
+shouldBeTrue("typeof event.xAcceleration == 'object'");
+shouldBeTrue("typeof event.yAcceleration == 'object'");
+shouldBeTrue("typeof event.zAcceleration == 'object'");
+shouldBeTrue("typeof event.xRotationRate == 'object'");
+shouldBeTrue("typeof event.yRotationRate == 'object'");
+shouldBeTrue("typeof event.zRotationRate == 'object'");
+shouldBeTrue("typeof event.interval == 'object'");
+
+window.successfullyParsed = true;