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

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: Moved unsupported selection API input type to selection-wrongtype, and corrected input-select-api-s… 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..25e3abe7073361686855ea7e99705c606dcb31de
--- /dev/null
+++ b/LayoutTests/fast/forms/input-select-api-support.html
@@ -0,0 +1,31 @@
+<!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="month" id="month">
+<input type="week" id="week">
+<input type="time" id="time">
+<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, Month, Week, Time, DateTime-Local, Color and File.');
+
+shouldNotThrow('document.getElementById("email").select()');
+shouldNotThrow('document.getElementById("number").select()');
+shouldNotThrow('document.getElementById("date").select()');
+shouldNotThrow('document.getElementById("month").select()');
+shouldNotThrow('document.getElementById("week").select()');
+shouldNotThrow('document.getElementById("time").select()');
+shouldNotThrow('document.getElementById("datetime-local").select()');
+shouldNotThrow('document.getElementById("color").select()');
+shouldNotThrow('document.getElementById("file").select()');
+
+</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