summaryrefslogtreecommitdiffstats
path: root/dom/system/tests/file_bug1197901.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/system/tests/file_bug1197901.html')
-rw-r--r--dom/system/tests/file_bug1197901.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/dom/system/tests/file_bug1197901.html b/dom/system/tests/file_bug1197901.html
new file mode 100644
index 000000000..44e63c3c1
--- /dev/null
+++ b/dom/system/tests/file_bug1197901.html
@@ -0,0 +1,16 @@
+<pre>Sensor events testing</pre>
+<script>
+
+window.onmessage = function (event) {
+ if (event.data.command == "addEventListener") {
+ window.addEventListener(
+ "devicemotion", function() {
+ event.source.postMessage({ result: event.data.expected,
+ message: event.data.message },
+ "*");
+ }
+ );
+ }
+}
+
+</script>