diff options
Diffstat (limited to 'toolkit/mozapps/extensions/test/browser/browser_dragdrop.js')
-rw-r--r-- | toolkit/mozapps/extensions/test/browser/browser_dragdrop.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/toolkit/mozapps/extensions/test/browser/browser_dragdrop.js b/toolkit/mozapps/extensions/test/browser/browser_dragdrop.js index 960e7e933..1df288323 100644 --- a/toolkit/mozapps/extensions/test/browser/browser_dragdrop.js +++ b/toolkit/mozapps/extensions/test/browser/browser_dragdrop.js @@ -8,13 +8,13 @@ // Tests are only simulations of the drag and drop events, we cannot really do // this automatically. -// Instead of loading EventUtils.js into the test scope in browser-test.js for all tests, -// we only need EventUtils.js for a few files which is why we are using loadSubScript. +// Instead of loading ChromeUtils.js into the test scope in browser-test.js for all tests, +// we only need ChromeUtils.js for a few files which is why we are using loadSubScript. var gManagerWindow; -var EventUtils = {}; +var ChromeUtils = {}; this._scriptLoader = Cc["@mozilla.org/moz/jssubscript-loader;1"]. getService(Ci.mozIJSSubScriptLoader); -this._scriptLoader.loadSubScript("chrome://mochikit/content/tests/SimpleTest/EventUtils.js", EventUtils); +this._scriptLoader.loadSubScript("chrome://mochikit/content/tests/SimpleTest/ChromeUtils.js", ChromeUtils); // This listens for the next opened window and checks it is of the right url. // opencallback is called when the new window is fully loaded @@ -137,7 +137,7 @@ add_test(function() { }); var viewContainer = gManagerWindow.document.getElementById("view-port"); - var effect = EventUtils.synthesizeDrop(viewContainer, viewContainer, + var effect = ChromeUtils.synthesizeDrop(viewContainer, viewContainer, [[{type: "text/x-moz-url", data: url}]], "copy", gManagerWindow); is(effect, "copy", "Drag should be accepted"); @@ -158,7 +158,7 @@ add_test(function() { }); var viewContainer = gManagerWindow.document.getElementById("view-port"); - var effect = EventUtils.synthesizeDrop(viewContainer, viewContainer, + var effect = ChromeUtils.synthesizeDrop(viewContainer, viewContainer, [[{type: "application/x-moz-file", data: fileurl.file}]], "copy", gManagerWindow); is(effect, "copy", "Drag should be accepted"); @@ -180,7 +180,7 @@ add_test(function() { }); var viewContainer = gManagerWindow.document.getElementById("view-port"); - var effect = EventUtils.synthesizeDrop(viewContainer, viewContainer, + var effect = ChromeUtils.synthesizeDrop(viewContainer, viewContainer, [[{type: "text/x-moz-url", data: url1}], [{type: "text/x-moz-url", data: url2}]], "copy", gManagerWindow); @@ -203,7 +203,7 @@ add_test(function() { }); var viewContainer = gManagerWindow.document.getElementById("view-port"); - var effect = EventUtils.synthesizeDrop(viewContainer, viewContainer, + var effect = ChromeUtils.synthesizeDrop(viewContainer, viewContainer, [[{type: "application/x-moz-file", data: fileurl1.file}], [{type: "application/x-moz-file", data: fileurl2.file}]], "copy", gManagerWindow); @@ -226,7 +226,7 @@ add_test(function() { }); var viewContainer = gManagerWindow.document.getElementById("view-port"); - var effect = EventUtils.synthesizeDrop(viewContainer, viewContainer, + var effect = ChromeUtils.synthesizeDrop(viewContainer, viewContainer, [[{type: "text/x-moz-url", data: url}], [{type: "application/x-moz-file", data: fileurl.file}]], "copy", gManagerWindow); |