Bug 966805 - Disable transitions in browser_styleeditor_sourcemap_watching.js. r=bgrins, a=test-only
authorHeather Arthur <fayearthur@gmail.com>
Fri, 25 Jul 2014 14:12:00 +0200
changeset 208198 b278a705d160
parent 208197 59a8340afc89
child 208199 1efe42b45348
push id3764
push userryanvm@gmail.com
push date2014-07-30 15:35 +0000
treeherdermozilla-beta@97b81de9d1a5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgrins, test-only
bugs966805
milestone32.0
Bug 966805 - Disable transitions in browser_styleeditor_sourcemap_watching.js. r=bgrins, a=test-only
browser/devtools/styleeditor/test/browser_styleeditor_sourcemap_watching.js
--- a/browser/devtools/styleeditor/test/browser_styleeditor_sourcemap_watching.js
+++ b/browser/devtools/styleeditor/test/browser_styleeditor_sourcemap_watching.js
@@ -9,34 +9,36 @@ let {Promise: promise} = Cu.import("reso
 const TESTCASE_URI_HTML = TEST_BASE + "sourcemaps.html";
 const TESTCASE_URI_CSS = TEST_BASE + "sourcemap-css/sourcemaps.css";
 const TESTCASE_URI_CSS2 = TEST_BASE + "sourcemap-css/contained.css";
 const TESTCASE_URI_REG_CSS = TEST_BASE + "simple.css";
 const TESTCASE_URI_SCSS = TEST_BASE + "sourcemap-sass/sourcemaps.scss";
 const TESTCASE_URI_MAP = TEST_BASE + "sourcemap-css/sourcemaps.css.map";
 const TESTCASE_SCSS_NAME = "sourcemaps.scss";
 
-const PREF = "devtools.styleeditor.source-maps-enabled";
+const SOURCE_MAP_PREF = "devtools.styleeditor.source-maps-enabled";
+const TRANSITIONS_PREF = "devtools.styleeditor.transitions";
 
 const CSS_TEXT = "* { color: blue }";
 
 const Cc = Components.classes;
 const Ci = Components.interfaces;
 
 let tempScope = {};
 Components.utils.import("resource://gre/modules/FileUtils.jsm", tempScope);
 Components.utils.import("resource://gre/modules/NetUtil.jsm", tempScope);
 let FileUtils = tempScope.FileUtils;
 let NetUtil = tempScope.NetUtil;
 
 function test()
 {
   waitForExplicitFinish();
 
-  Services.prefs.setBoolPref(PREF, true);
+  Services.prefs.setBoolPref(SOURCE_MAP_PREF, true);
+  Services.prefs.setBoolPref(TRANSITIONS_PREF, false);
 
   Task.spawn(function() {
     // copy all our files over so we don't screw them up for other tests
     let HTMLFile = yield copy(TESTCASE_URI_HTML, ["sourcemaps.html"]);
     let CSSFile = yield copy(TESTCASE_URI_CSS, ["sourcemap-css", "sourcemaps.css"]);
     let CSSFile2 = yield copy(TESTCASE_URI_CSS2, ["sourcemap-css", "contained.css"]);
     yield copy(TESTCASE_URI_SCSS, ["sourcemap-sass", "sourcemaps.scss"]);
     yield copy(TESTCASE_URI_MAP, ["sourcemap-css", "sourcemaps.css.map"]);
@@ -121,17 +123,18 @@ function pauseForTimeChange() {
   // our file's last change time will show a change. This reflects what
   // would happen in real life with a user manually saving the file.
   setTimeout(deferred.resolve, 2000);
 
   return deferred.promise;
 }
 
 function finishUp() {
-  Services.prefs.clearUserPref(PREF);
+  Services.prefs.clearUserPref(SOURCE_MAP_PREF);
+  Services.prefs.clearUserPref(TRANSITIONS_PREF);
   finish();
 }
 
 /* Helpers */
 
 function getLinkFor(editor) {
   return editor.summary.querySelector(".stylesheet-name");
 }