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

Unified Diff: LayoutTests/fast/forms/input-select-api-support.html

Issue 707853002: Tests to show support for select() API exists (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 | « no previous file | LayoutTests/fast/forms/input-select-api-support-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/input-select-api-support.html
diff --git a/LayoutTests/fast/forms/input-select-api-support.html b/LayoutTests/fast/forms/input-select-api-support.html
new file mode 100644
index 0000000000000000000000000000000000000000..f38c1553447c3c8c4f3bcfa19443b55206d7c784
--- /dev/null
+++ b/LayoutTests/fast/forms/input-select-api-support.html
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../resources/js-test.js"></script>
+</head>
+<body>
+<input type="email" id="email">
+<input type="number" id="number">
+<input type="date" id="date">
+<input type="datetime-local" id="datetime-local">
+<input type="color" id="color">
+<input type="file" id="file">
+<script>
+description('Test to show select() support for Email, Number, Date/Time, Color and File. It throws only for selection() API');
+
+var id = document.getElementById('email');
+shouldBe('id.select()', '');
tkent 2014/11/07 00:22:32 This should be |shouldNotThrow('document.getElemen
Habib Virji 2014/11/07 13:30:10 Done.
+shouldThrow('id.selectionStart()');
tkent 2014/11/07 00:22:32 Please remove this line, and add tests for missing
Habib Virji 2014/11/07 13:30:10 Done.
+
+id = document.getElementById('number');
+shouldBe('id.select()', '');
+shouldThrow('id.selectionStart()');
+
+id = document.getElementById('date');
+shouldBe('id.select()', '');
+shouldThrow('id.selectionStart()');
+
+id = document.getElementById('datetime-local');
+shouldBe('id.select()', '');
+shouldThrow('id.selectionStart()');
+
tkent 2014/11/07 00:22:32 Please add tests for <input type=month/time/week>.
Habib Virji 2014/11/07 13:30:10 Done.
+id = document.getElementById('color');
+shouldBe('id.select()', '');
+shouldThrow('id.selectionStart()');
+
+id = document.getElementById('file');
+shouldBe('id.select()', '');
+shouldThrow('id.selectionStart()');
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/forms/input-select-api-support-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698