Bug 759000 Use accelKey instead of ctrlKey in peptest tests. r=ctalbert
authorMark Cote <mcote@mozilla.com>
Wed, 06 Jun 2012 11:31:12 -0400
changeset 98709 eb6f7f0f77d536835093be9ae77dd4f49511eda6
parent 98708 9c806c9077d2aa4e81642f0c353bb3c6653053c4
child 98710 484f9e22295db88a5636e1df4457a7b529810882
push id1729
push userlsblakk@mozilla.com
push dateMon, 16 Jul 2012 20:02:43 +0000
treeherdermozilla-aurora@f4e75e148951 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersctalbert
bugs759000
milestone16.0a1
Bug 759000 Use accelKey instead of ctrlKey in peptest tests. r=ctalbert
testing/peptest/tests/firefox/test_openBlankTab.js
testing/peptest/tests/firefox/test_openWindow.js
--- a/testing/peptest/tests/firefox/test_openBlankTab.js
+++ b/testing/peptest/tests/firefox/test_openBlankTab.js
@@ -5,14 +5,14 @@
 Components.utils.import('resource://mozmill/driver/mozmill.js');
 let c = getBrowserController();
 
 c.open('http://mozilla.org');
 c.waitForPageLoad();
 
 // Only put things you want to test for responsiveness inside a perfom action call
 pep.performAction('open_blank_tab', function() {
-  c.rootElement.keypress('t', {'ctrlKey': true});
+  c.rootElement.keypress('t', {'accelKey': true});
 });
 
 pep.performAction('close_blank_tab', function() {
-  c.rootElement.keypress('w', {'ctrlKey': true});
+  c.rootElement.keypress('w', {'accelKey': true});
 });
--- a/testing/peptest/tests/firefox/test_openWindow.js
+++ b/testing/peptest/tests/firefox/test_openWindow.js
@@ -1,12 +1,12 @@
 /* Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
 Components.utils.import("resource://mozmill/driver/mozmill.js");
 let controller = getBrowserController();
 
 let win = findElement.ID(controller.window.document, 'main-window');
 pep.performAction("open_window", function() {
-  win.keypress("n", {"ctrlKey":true});
+  win.keypress("n", {"accelKey":true});
 });
 
 pep.getWindow().close();