Bug 1103836, Patch 2: Mochitest, r=smaug.
authorGina Yeh <gyeh@mozilla.com>
Wed, 26 Nov 2014 17:29:11 +0800
changeset 241911 7dd682deff45f53814f77b967540496ecf77fafd
parent 241910 745662839b5d1307b564bbe0a2065a7cee224998
child 241912 2fd42e5e2920dfbed25a7186c81505a883ed17e0
push id4311
push userraliiev@mozilla.com
push dateMon, 12 Jan 2015 19:37:41 +0000
treeherdermozilla-beta@150c9fed433b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1103836
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1103836, Patch 2: Mochitest, r=smaug.
dom/events/test/test_dom_before_after_keyboard_event_remote.html
--- a/dom/events/test/test_dom_before_after_keyboard_event_remote.html
+++ b/dom/events/test/test_dom_before_after_keyboard_event_remote.html
@@ -30,56 +30,87 @@ var testsForEventOrder = [
                         kParent | kKeyUpEvent,
                         kChild | kKeyUpEvent,
                         kParent | kAfterEvent | kKeyUpEvent ] ],
     resultEvents: [],
     classifiedEvents: [ [], [] ],
     doPreventDefaultAt: kUnknownEvent
   },
   {
-    description: "Testing the order of the events (OOP), calling preventDefault() at \"mozbrowserbeforekeydown\" event",
+    description: "Testing the order of the events (OOP), calling " +
+                 "preventDefault() at \"mozbrowserbeforekeydown\" event",
     expectedEvents: [ [ kParent | kBeforeEvent | kKeyDownEvent,
                         kParent | kAfterEvent | kKeyDownEvent ],
                       [ kParent | kBeforeEvent | kKeyUpEvent,
                         kParent | kKeyUpEvent,
                         kChild | kKeyUpEvent,
                         kParent | kAfterEvent | kKeyUpEvent ] ],
     resultEvents: [],
     classifiedEvents: [ [], [] ],
     doPreventDefaultAt: kParent | kBeforeEvent | kKeyDownEvent
   },
   {
-    description: "Testing the order of the events (OOP), calling preventDefault() at \"mozbrowserbeforekeyup\" event",
+    description: "Testing the order of the events (OOP), calling " +
+                 "preventDefault() at \"mozbrowserbeforekeyup\" event",
     expectedEvents: [ [ kParent | kBeforeEvent | kKeyDownEvent,
                         kParent | kKeyDownEvent,
                         kChild | kKeyDownEvent,
                         kParent | kAfterEvent | kKeyDownEvent ],
                       [ kParent | kBeforeEvent | kKeyUpEvent,
                         kParent | kAfterEvent | kKeyUpEvent ] ],
     resultEvents: [],
     classifiedEvents: [ [], [] ],
     doPreventDefaultAt: kParent | kBeforeEvent | kKeyUpEvent
   },
-
   {
-    description: "Testing the order of the events (OOP), calling preventDefault() at \"keydown\" event",
+    description: "Testing the order of the events (OOP), calling " +
+                 "preventDefault() at \"keydown\" event in parent process",
+    expectedEvents: [ [ kParent | kBeforeEvent | kKeyDownEvent,
+                        kParent | kKeyDownEvent,
+                        kParent | kAfterEvent | kKeyDownEvent ],
+                      [ kParent | kBeforeEvent | kKeyUpEvent,
+                        kParent | kKeyUpEvent,
+                        kChild | kKeyUpEvent,
+                        kParent | kAfterEvent | kKeyUpEvent ] ],
+    resultEvents: [],
+    classifiedEvents: [ [], [] ],
+    doPreventDefaultAt: kParent | kKeyDownEvent
+  },
+  {
+    description: "Testing the order of the events (OOP), calling " +
+                 "preventDefault() at \"keydown\" event in child process",
     expectedEvents: [ [ kParent | kBeforeEvent | kKeyDownEvent,
                         kParent | kKeyDownEvent,
                         kChild | kKeyDownEvent,
                         kParent | kAfterEvent | kKeyDownEvent ],
                       [ kParent | kBeforeEvent | kKeyUpEvent,
                         kParent | kKeyUpEvent,
                         kChild | kKeyUpEvent,
                         kParent | kAfterEvent | kKeyUpEvent ] ],
     resultEvents: [],
     classifiedEvents: [ [], [] ],
     doPreventDefaultAt: kChild | kKeyDownEvent
   },
   {
-    description: "Testing the order of the events (OOP), calling preventDefault() at \"keyup\" event",
+    description: "Testing the order of the events (OOP), calling " +
+                 "preventDefault() at \"keyup\" event in parent process",
+    expectedEvents: [ [ kParent | kBeforeEvent | kKeyDownEvent,
+                        kParent | kKeyDownEvent,
+                        kChild | kKeyDownEvent,
+                        kParent | kAfterEvent | kKeyDownEvent ],
+                      [ kParent | kBeforeEvent | kKeyUpEvent,
+                        kParent | kKeyUpEvent,
+                        kParent | kAfterEvent | kKeyUpEvent ] ],
+    resultEvents: [],
+    classifiedEvents: [ [], [] ],
+    doPreventDefaultAt: kParent | kKeyUpEvent
+  },
+  {
+    description: "Testing the order of the events (OOP), calling " +
+                 "preventDefault() at \"keyup\" event in child process",
     expectedEvents: [ [ kParent | kBeforeEvent | kKeyDownEvent,
                         kParent | kKeyDownEvent,
                         kChild | kKeyDownEvent,
                         kParent | kAfterEvent | kKeyDownEvent ],
                       [ kParent | kBeforeEvent | kKeyUpEvent,
                         kParent | kKeyUpEvent,
                         kChild | kKeyUpEvent,
                         kParent | kAfterEvent | kKeyUpEvent ] ],