Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1873)

Unified Diff: Source/core/testing/PrivateScriptTest.js

Issue 466623002: Refactor PrivateScriptRunner.js to reduce the number of globally exposed variables (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/testing/PartialPrivateScriptTest.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/PrivateScriptTest.js
diff --git a/Source/core/testing/PrivateScriptTest.js b/Source/core/testing/PrivateScriptTest.js
index b3692ef3ccf72d00169a4ddb06c1ac394ba14466..c6005d5d6f5915a66b0d160089b8460557419b81 100644
--- a/Source/core/testing/PrivateScriptTest.js
+++ b/Source/core/testing/PrivateScriptTest.js
@@ -4,7 +4,7 @@
"use strict";
-installClass("PrivateScriptTest", function(global, PrivateScriptTestPrototype) {
+installClass("PrivateScriptTest", function(PrivateScriptTestPrototype) {
PrivateScriptTestPrototype.initialize = function() {
this.m_shortAttribute = -1;
@@ -91,7 +91,7 @@ installClass("PrivateScriptTest", function(global, PrivateScriptTestPrototype) {
}
PrivateScriptTestPrototype.clickNode = function(document, node) {
- var event = new MouseEvent("click", { bubbles: true, cancelable: true, view: global });
+ var event = new MouseEvent("click", { bubbles: true, cancelable: true, view: window });
node.dispatchEvent(event);
}
« no previous file with comments | « Source/core/testing/PartialPrivateScriptTest.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698