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

Side by Side Diff: Source/core/testing/PartialPrivateScriptTest.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 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 "use strict"; 5 "use strict";
6 6
7 installClass("PrivateScriptTest", function(PrivateScriptTestPrototype) { 7 privateScriptController.installClass("PrivateScriptTest", function(PrivateScript TestPrototype) {
8 8
9 PrivateScriptTestPrototype.addIntegerInPartial = function(value1, value2) { 9 PrivateScriptTestPrototype.addIntegerInPartial = function(value1, value2) {
10 return value1 + value2; 10 return value1 + value2;
11 } 11 }
12 12
13 PrivateScriptTestPrototype.addInteger2InPartial = function(value1, value2) { 13 PrivateScriptTestPrototype.addInteger2InPartial = function(value1, value2) {
14 // addValue_ is a method defined in PrivateScriptTest.js. 14 // addValue_ is a method defined in PrivateScriptTest.js.
15 // Partial interfaces should be able to use methods defined in the base interface. 15 // Partial interfaces should be able to use methods defined in the base interface.
16 return this.addValues_(value1, value2); 16 return this.addValues_(value1, value2);
17 } 17 }
18 18
19 Object.defineProperty(PrivateScriptTestPrototype, "stringAttributeInPartial" , { 19 Object.defineProperty(PrivateScriptTestPrototype, "stringAttributeInPartial" , {
20 get: function() { return this.m_stringAttributeInPartial; }, 20 get: function() { return this.m_stringAttributeInPartial; },
21 set: function(value) { this.m_stringAttributeInPartial = value; } 21 set: function(value) { this.m_stringAttributeInPartial = value; }
22 }); 22 });
23 23
24 }); 24 });
OLDNEW
« no previous file with comments | « Source/core/html/shadow/PluginPlaceholderElement.js ('k') | Source/core/testing/PrivateScriptTest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698