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

Unified Diff: LayoutTests/fast/dom/private_script_unittest.html

Issue 362993004: Implement Blink-in-JS for DOM attributes (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
Index: LayoutTests/fast/dom/private_script_unittest.html
diff --git a/LayoutTests/fast/dom/private_script_unittest.html b/LayoutTests/fast/dom/private_script_unittest.html
index 2d5aba1f8fd4aa5d478179879e3f3b6e63b38f9f..8f9e55f8f55d950e878338800910a8714c169c25 100644
--- a/LayoutTests/fast/dom/private_script_unittest.html
+++ b/LayoutTests/fast/dom/private_script_unittest.html
@@ -49,6 +49,18 @@ internals.addClickListener(node7);
internals.clickNode(document, node7);
shouldBeEqualToString('internals.innerHTML(node7)', 'clicked')
+shouldBe('internals.readonlyShortAttribute', '123');
+shouldBe('internals.shortAttribute', '-1');
+internals.shortAttribute = 111;
+shouldBe('internals.shortAttribute', '111');
+shouldBeEqualToString('internals.stringAttribute', 'xxx');
+internals.stringAttribute = "foo";
+shouldBeEqualToString('internals.stringAttribute', 'foo');
+shouldBe('internals.nodeAttribute', 'null');
+var node8 = internals.createElement(document);
+internals.nodeAttribute = node8;
+shouldBe('internals.nodeAttribute', 'node8');
+
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698