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

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

Issue 413393003: Blink-in-JS: Implement internal APIs exposed only to private scripts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/PrivateScriptTest.idl ('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 1f4100575b549c1c59a31aa9d463d70980bc4004..255485a6912e72615a8edcad12de0baecc9f5fa4 100644
--- a/Source/core/testing/PrivateScriptTest.js
+++ b/Source/core/testing/PrivateScriptTest.js
@@ -131,4 +131,13 @@ installClass("PrivateScriptTest", function(global, InternalsPrototype) {
get: function() { return this.m_stringAttributeForPrivateScriptOnly; },
set: function(value) { this.m_stringAttributeForPrivateScriptOnly = value; }
});
+
+ InternalsPrototype.addIntegerImplementedInCPP = function(value1, value2) {
+ return this.addIntegerImplementedInCPPForPrivateScriptOnly(value1, value2);
+ }
+
+ Object.defineProperty(InternalsPrototype, "stringAttributeImplementedInCPP", {
+ get: function() { return this.m_stringAttributeImplementedInCPPForPrivateScriptOnly; },
+ set: function(value) { this.m_stringAttributeImplementedInCPPForPrivateScriptOnly = value; }
+ });
});
« no previous file with comments | « Source/core/testing/PrivateScriptTest.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698