| OLD | NEW |
| 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("Internals", function(global) { | 7 installClass("PrivateScriptTest", function(global) { |
| 8 var InternalsPrototype = Object.create(Element.prototype); | 8 var InternalsPrototype = Object.create(Element.prototype); |
| 9 | 9 |
| 10 InternalsPrototype.constructor = function() { | 10 InternalsPrototype.constructor = function() { |
| 11 this.m_shortAttribute = -1; | 11 this.m_shortAttribute = -1; |
| 12 this.m_stringAttribute = "xxx"; | 12 this.m_stringAttribute = "xxx"; |
| 13 this.m_nodeAttribute = null; | 13 this.m_nodeAttribute = null; |
| 14 } | 14 } |
| 15 | 15 |
| 16 InternalsPrototype.doNothing = function() { | 16 InternalsPrototype.doNothing = function() { |
| 17 } | 17 } |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 set: function(value) { this.m_stringAttribute = value; } | 105 set: function(value) { this.m_stringAttribute = value; } |
| 106 }); | 106 }); |
| 107 | 107 |
| 108 Object.defineProperty(InternalsPrototype, "nodeAttribute", { | 108 Object.defineProperty(InternalsPrototype, "nodeAttribute", { |
| 109 get: function() { return this.m_nodeAttribute; }, | 109 get: function() { return this.m_nodeAttribute; }, |
| 110 set: function(value) { this.m_nodeAttribute = value; } | 110 set: function(value) { this.m_nodeAttribute = value; } |
| 111 }); | 111 }); |
| 112 | 112 |
| 113 return InternalsPrototype; | 113 return InternalsPrototype; |
| 114 }); | 114 }); |
| OLD | NEW |