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

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

Issue 756053002: [Blink-in-JS] Migrate the PrivateScript specific methods/attributes to ScriptController (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: ScriptController => PrivateScriptController Created 6 years, 1 month 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') | Source/core/xml/DocumentXMLTreeViewer.js » ('j') | 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 358ac89fea423f196ec7cef995c9074295fa8f65..e9ed14ae0ff4c4336df27f1b5f3cc63b45b843de 100644
--- a/Source/core/testing/PrivateScriptTest.js
+++ b/Source/core/testing/PrivateScriptTest.js
@@ -4,7 +4,7 @@
"use strict";
-installClass("PrivateScriptTest", function(PrivateScriptTestPrototype) {
+privateScriptController.installClass("PrivateScriptTest", function(PrivateScriptTestPrototype) {
PrivateScriptTestPrototype.initialize = function() {
this.m_shortAttribute = -1;
@@ -115,32 +115,32 @@ installClass("PrivateScriptTest", function(PrivateScriptTestPrototype) {
});
Object.defineProperty(PrivateScriptTestPrototype, "nodeAttributeThrowsIndexSizeError", {
- get: function() { throwException(PrivateScriptDOMException.IndexSizeError, "getter threw error"); },
- set: function(value) { throwException(PrivateScriptDOMException.IndexSizeError, "setter threw error"); }
+ get: function() { privateScriptController.throwException(privateScriptController.DOMException.IndexSizeError, "getter threw error"); },
+ set: function(value) { privateScriptController.throwException(privateScriptController.DOMException.IndexSizeError, "setter threw error"); }
});
PrivateScriptTestPrototype.voidMethodThrowsDOMSyntaxError = function() {
- throwException(PrivateScriptDOMException.SyntaxError, "method threw error");
+ privateScriptController.throwException(privateScriptController.DOMException.SyntaxError, "method threw error");
}
PrivateScriptTestPrototype.voidMethodThrowsError = function() {
- throwException(PrivateScriptJSError.Error, "method threw Error");
+ privateScriptController.throwException(privateScriptController.JSError.Error, "method threw Error");
}
PrivateScriptTestPrototype.voidMethodThrowsTypeError = function() {
- throwException(PrivateScriptJSError.TypeError, "method threw TypeError");
+ privateScriptController.throwException(privateScriptController.JSError.TypeError, "method threw TypeError");
}
PrivateScriptTestPrototype.voidMethodThrowsRangeError = function() {
- throwException(PrivateScriptJSError.RangeError, "method threw RangeError");
+ privateScriptController.throwException(privateScriptController.JSError.RangeError, "method threw RangeError");
}
PrivateScriptTestPrototype.voidMethodThrowsSyntaxError = function() {
- throwException(PrivateScriptJSError.SyntaxError, "method threw SyntaxError");
+ privateScriptController.throwException(privateScriptController.JSError.SyntaxError, "method threw SyntaxError");
}
PrivateScriptTestPrototype.voidMethodThrowsReferenceError = function() {
- throwException(PrivateScriptJSError.ReferenceError, "method threw ReferenceError");
+ privateScriptController.throwException(privateScriptController.JSError.ReferenceError, "method threw ReferenceError");
}
PrivateScriptTestPrototype.voidMethodThrowsStackOverflowError = function() {
« no previous file with comments | « Source/core/testing/PartialPrivateScriptTest.js ('k') | Source/core/xml/DocumentXMLTreeViewer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698