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

Unified Diff: LayoutTests/fast/dom/HTMLTextAreaElement/get-default-value.html

Issue 1221233003: HTMLTextAreaElement.defaultValue is not implemented as per spec Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix test failures Created 5 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/HTMLTextAreaElement/get-default-value.html
diff --git a/LayoutTests/fast/dom/HTMLTextAreaElement/get-default-value.html b/LayoutTests/fast/dom/HTMLTextAreaElement/get-default-value.html
new file mode 100644
index 0000000000000000000000000000000000000000..4fcb2d9a76b35e31bab479b7556793d965d00c04
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLTextAreaElement/get-default-value.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<link rel="help" href="http://dev.w3.org/html5/spec-preview/the-textarea-element.html#dom-textarea-defaultvalue">
+<script src="../../../resources/js-test.js"></script>
+
+<body>
+<script>
+description("Tests that HTMLTextAreaElement.defaultValue is implemented as per spec.");
+
+var textArea = document.createElement('textarea');
+document.body.appendChild(textArea);
+textArea.appendChild(document.createTextNode('text1'));
+textArea.appendChild(document.createComment('comment'));
+
+shouldBe('textArea.childNodes.length', '2');
+textArea.defaultValue = 'text2';
+shouldBe('textArea.childNodes.length', '1');
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698