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

Unified Diff: LayoutTests/fast/forms/number/number-selectapi.html

Issue 100433008: Disable select api for input type number and email (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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/forms/number/number-selectapi.html
diff --git a/LayoutTests/fast/forms/number/number-selectapi.html b/LayoutTests/fast/forms/number/number-selectapi.html
new file mode 100644
index 0000000000000000000000000000000000000000..674d5c138048da40f97412b12514b1148752675d
--- /dev/null
+++ b/LayoutTests/fast/forms/number/number-selectapi.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+</head>
+<body>
+<input id='number' type=number>
+<script>
+description("Test selectionStart() method support in input type number.");
+
+debug('Checking input type number support for selectionStart:');
+shouldThrow('document.getElementById("number").selectionStart = 0');
+
+debug('Checking input type number support for selectionEnd:');
+shouldThrow('document.getElementById("number").selectionEnd');
+
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698