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

Unified Diff: LayoutTests/fast/dom/text-api-arguments-expected.txt

Issue 21816003: Text API does not behave according to specification (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Simplify link tag Created 7 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
« no previous file with comments | « LayoutTests/fast/dom/text-api-arguments.html ('k') | Source/core/dom/Text.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/text-api-arguments-expected.txt
diff --git a/LayoutTests/fast/dom/text-api-arguments-expected.txt b/LayoutTests/fast/dom/text-api-arguments-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..28aba35328a9585b94cd60033aaa8812aebef4d1
--- /dev/null
+++ b/LayoutTests/fast/dom/text-api-arguments-expected.txt
@@ -0,0 +1,31 @@
+Tests that the Text API arguments are correctly validated.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS text.data is "abcdefg"
+PASS text.__proto__ is Text.prototype
+PASS text.splitText(4).data is "efg"
+PASS text.data is "abcd"
+PASS text.splitText() threw exception TypeError: Not enough arguments.
+PASS text.data is "abcd"
+PASS text.splitText(999) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS text.data is "abcd"
+PASS text.splitText(-1) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS text.data is "abcd"
+PASS text.splitText(-4294967294).data is "cd"
+PASS text.data is "ab"
+PASS text.replaceWholeText('test') is text
+PASS text.data is "test"
+PASS text.replaceWholeText('') is null
+PASS text.data is "test"
+PASS text.replaceWholeText() threw exception TypeError: Not enough arguments.
+PASS text.data is "test"
+PASS text.replaceWholeText(null) is text
+PASS text.data is "null"
+PASS text.replaceWholeText(undefined) is text
+PASS text.data is "undefined"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/fast/dom/text-api-arguments.html ('k') | Source/core/dom/Text.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698