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

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

Issue 457483002: Blink-in-JS: Support partial interfaces in private scripts 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.idl ('k') | Source/core/testing/PrivateScriptTest.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/PartialPrivateScriptTest.js
diff --git a/Source/core/testing/PartialPrivateScriptTest.js b/Source/core/testing/PartialPrivateScriptTest.js
new file mode 100644
index 0000000000000000000000000000000000000000..b529dca554b78746f3bea06bdf0494746ec1bf3a
--- /dev/null
+++ b/Source/core/testing/PartialPrivateScriptTest.js
@@ -0,0 +1,24 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+"use strict";
+
+installClass("PrivateScriptTest", function(global, PrivateScriptTestPrototype) {
+
+ PrivateScriptTestPrototype.addIntegerInPartial = function(value1, value2) {
+ return value1 + value2;
+ }
+
+ PrivateScriptTestPrototype.addInteger2InPartial = function(value1, value2) {
+ // addValue_ is a method defined in PrivateScriptTest.js.
+ // Partial interfaces should be able to use methods defined in the base interface.
+ return this.addValues_(value1, value2);
+ }
+
+ Object.defineProperty(PrivateScriptTestPrototype, "stringAttributeInPartial", {
+ get: function() { return this.m_stringAttributeInPartial; },
+ set: function(value) { this.m_stringAttributeInPartial = value; }
+ });
+
+});
« no previous file with comments | « Source/core/testing/PartialPrivateScriptTest.idl ('k') | Source/core/testing/PrivateScriptTest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698