Bug 1351074 - Part 3. Include AsyncSpellCheckTestHelper.jsm in reftest. r?masayuki draft
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Mon, 03 Apr 2017 12:37:48 +0900
changeset 554914 7915f1a71d9a16591c051bd8f50e5c77f07a937a
parent 554913 a8553684f8f106c1dfb6e2d9b51df7ebeb15275d
child 554915 d6c01af860d3d5f07b5c551f60964e913e220800
child 554916 9add4d8ead61b499f03a2f4815cee33c2a3229bb
child 554917 521f09775887fabee4df85a46287d348eb07d0f8
push id52086
push userm_kato@ga2.so-net.ne.jp
push dateMon, 03 Apr 2017 08:14:55 +0000
reviewersmasayuki
bugs1351074
milestone55.0a1
Bug 1351074 - Part 3. Include AsyncSpellCheckTestHelper.jsm in reftest. r?masayuki reftest cannot use testing-common, so we should include AsyncSpellCheckTestHelper.jsm in reftest.jar. Previous fix has typo of chrome vs resource. It should be chrome://. MozReview-Commit-ID: KeyDLjc9AUI
layout/tools/reftest/jar.mn
layout/tools/reftest/reftest-content.js
--- a/layout/tools/reftest/jar.mn
+++ b/layout/tools/reftest/jar.mn
@@ -1,7 +1,8 @@
 reftest.jar:
 % content reftest %content/
   content/reftest-content.js (reftest-content.js)
+  content/AsyncSpellCheckTestHelper.jsm (../../../editor/AsyncSpellCheckTestHelper.jsm)
   content/httpd.jsm (../../../netwerk/test/httpserver/httpd.js)
   content/StructuredLog.jsm (../../../testing/modules/StructuredLog.jsm)
 *  content/reftest.jsm (reftest.jsm)
   content/reftest.xul (reftest.xul)
--- a/layout/tools/reftest/reftest-content.js
+++ b/layout/tools/reftest/reftest-content.js
@@ -16,17 +16,17 @@ const PRINTSETTINGS_CONTRACTID = "@mozil
 const ENVIRONMENT_CONTRACTID = "@mozilla.org/process/environment;1";
 const NS_OBSERVER_SERVICE_CONTRACTID = "@mozilla.org/observer-service;1";
 const NS_GFXINFO_CONTRACTID = "@mozilla.org/gfx/info;1";
 
 // "<!--CLEAR-->"
 const BLANK_URL_FOR_CLEARING = "data:text/html;charset=UTF-8,%3C%21%2D%2DCLEAR%2D%2D%3E";
 
 CU.import("resource://gre/modules/Timer.jsm");
-CU.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm");
+CU.import("chrome://reftest/content/AsyncSpellCheckTestHelper.jsm");
 
 var gBrowserIsRemote;
 var gIsWebRenderEnabled;
 var gHaveCanvasSnapshot = false;
 // Plugin layers can be updated asynchronously, so to make sure that all
 // layer surfaces have the right content, we need to listen for explicit
 // "MozPaintWait" and "MozPaintWaitFinished" events that signal when it's OK
 // to take snapshots. We cannot take a snapshot while the number of