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

Unified Diff: LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange-expected.txt

Issue 1144143009: W3C Test: Import web-platform-tests/html/semantics (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
Index: LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange-expected.txt
diff --git a/LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange-expected.txt b/LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..142bd318914277f320d25e69945223c0452596fd
--- /dev/null
+++ b/LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange-expected.txt
@@ -0,0 +1,43 @@
+This is a testharness.js-based test.
+PASS test of input.setSelectionRange
+PASS input typeof(input.setSelectionRange)'
+PASS input setSelectionRange return void
+PASS input setSelectionRange(0,1)
+PASS input setSelectionRange(0,input.value.length+1)
+PASS input setSelectionRange(2,2)
+PASS input setSelectionRange(2,1)
+PASS input direction of setSelectionRange(0,1,"backward")
+PASS input direction of setSelectionRange(0,1,"forward")
+PASS input direction of setSelectionRange(0,1,"none")
+PASS input direction of setSelectionRange(0,1,"hoge")
+PASS input direction of setSelectionRange(0,1,"BACKWARD")
+PASS input direction of setSelectionRange(0,1)
+PASS input setSelectionRange("string",1)
+PASS input setSelectionRange(true,1)
+PASS input setSelectionRange([],1)
+PASS input setSelectionRange({},1)
+PASS input setSelectionRange(NaN,1)
+PASS input setSelectionRange(null,1)
+PASS input setSelectionRange(undefined,1)
+PASS test of textarea.setSelectionRange
+PASS textarea typeof(input.setSelectionRange)'
+PASS textarea setSelectionRange return void
+PASS textarea setSelectionRange(0,1)
+PASS textarea setSelectionRange(0,textarea.value.length+1)
+PASS textarea setSelectionRange(2,2)
+PASS textarea setSelectionRange(2,1)
+PASS textarea direction of setSelectionRange(0,1,"backward")
+PASS textarea direction of setSelectionRange(0,1,"forward")
+PASS textarea direction of setSelectionRange(0,1,"none")
+PASS textarea direction of setSelectionRange(0,1,"hoge")
+PASS textarea direction of setSelectionRange(0,1,"BACKWARD")
+PASS textarea direction of setSelectionRange(0,1)
+FAIL textarea setSelectionRange("string",1) assert_equals: element.selectionStart should be 0 expected 1 but got 0
+PASS textarea setSelectionRange(true,1)
+FAIL textarea setSelectionRange([],1) assert_equals: element.selectionStart should be 0 expected 1 but got 0
+FAIL textarea setSelectionRange({},1) assert_equals: element.selectionStart should be 0 expected 1 but got 0
+FAIL textarea setSelectionRange(NaN,1) assert_equals: element.selectionStart should be 0 expected 1 but got 0
+FAIL textarea setSelectionRange(null,1) assert_equals: element.selectionStart should be 0 expected 1 but got 0
+FAIL textarea setSelectionRange(undefined,1) assert_equals: element.selectionStart should be 0 expected 1 but got 0
+Harness: the test ran to completion.
+

Powered by Google App Engine
This is Rietveld 408576698