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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/email-format-warning.html

Issue 2339493002: Remove useless validation check for email type. (Closed)
Patch Set: Remove noisy value validation warnings for email input type. Created 4 years, 3 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: third_party/WebKit/LayoutTests/fast/forms/email-format-warning.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/email-format-warning.html b/third_party/WebKit/LayoutTests/fast/forms/email-format-warning.html
deleted file mode 100644
index 134ad96158439164d59e31835a38392c07b953df..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/forms/email-format-warning.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<!DOCTYPE html>
-<body>
-<script src="../../resources/js-test.js"></script>
-<div id="container">
-<input type="email">
-<input type="email" style="visibility: hidden;">
-<input type="email" style="display: none;">
-<input type="email" value="parsing&#x263A;"><!-- This should show one warning. -->
-<input value="value-before-type&#x263A;" type="email"><!-- This should show one warning. -->
-<input value="valid@example.com, invalid-in-multiple&#x263A;" type="email" multiple><!-- This should show one warning. -->
-</div>
-<script>
-var inputs = document.querySelectorAll('input');
-var visibleInput = inputs[0];
-var invisibleInput2 = inputs[1];
-var invisibleInput3 = inputs[2];
-// Force layout. The warning message behavior depends on computed style.
-visibleInput.offsetWidth;
-
-debug('Invisible INPUT element should not show a format warning.');
-invisibleInput2.value = ':)';
-invisibleInput3.value = ':)';
-debug('');
-
-debug('Visible INPUT element should show a format warning. We\'ll see three warnings.');
-visibleInput.setAttribute('value', 'Invalid attribute value'); // This shows a warning.
-visibleInput.type = 'text';
-visibleInput.type = 'email'; // This shows a warning again.
-
-visibleInput.offsetWidth;
-visibleInput.value = 'Invalid IDL value'; // This shows a warning.
-visibleInput.type = 'text';
-visibleInput.type = 'email'; // This doesn't show a warning.
-
-document.querySelector('#container').remove();
-</script>
-</body>

Powered by Google App Engine
This is Rietveld 408576698