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

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

Issue 362993004: Implement Blink-in-JS for DOM attributes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/Internals.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/Internals.js
diff --git a/Source/core/testing/Internals.js b/Source/core/testing/Internals.js
index a30335c74888ed9367e021155b1246dc56ad6e07..c6260b6e774eebe3c7e5cce1a3bb021f01a084a9 100644
--- a/Source/core/testing/Internals.js
+++ b/Source/core/testing/Internals.js
@@ -85,5 +85,33 @@ installClass("Internals", function(global) {
node.dispatchEvent(event);
}
+ InternalsPrototype.readonlyShortAttributeGetter = function() {
+ return 123;
+ }
+
+ InternalsPrototype.shortAttributeGetter = function() {
+ return this.shortAttribute_;
+ }
+
+ InternalsPrototype.shortAttributeSetter = function(value) {
+ this.shortAttribute_ = value;
+ }
+
+ InternalsPrototype.stringAttributeGetter = function() {
+ return this.stringAttribute_;
+ }
+
+ InternalsPrototype.stringAttributeSetter = function(value) {
+ this.stringAttribute_ = value;
+ }
+
+ InternalsPrototype.nodeAttributeGetter = function() {
+ return this.nodeAttribute_;
+ }
+
+ InternalsPrototype.nodeAttributeSetter = function(value) {
+ this.nodeAttribute_ = value;
+ }
abarth-chromium 2014/07/02 14:26:31 This is pretty ugly. It would be much nicer to be
haraken 2014/07/02 15:47:19 Yeah, I'm on the same page. Even if it's hard to
+
return InternalsPrototype;
});
« no previous file with comments | « Source/core/testing/Internals.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698