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/ValidityState-patternMismatch.html

Issue 2037553002: INPUT pattern attribute: Enable "unicode" flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a comment about |mutable|, remove unnecessary #include Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/ValidityState-patternMismatch-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/forms/ValidityState-patternMismatch.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/ValidityState-patternMismatch.html b/third_party/WebKit/LayoutTests/fast/forms/ValidityState-patternMismatch.html
index df1c062667e8ffe631fc4895a9b1f7b2105799eb..173732856654f5820f98b649ed3163404c63fe96 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/ValidityState-patternMismatch.html
+++ b/third_party/WebKit/LayoutTests/fast/forms/ValidityState-patternMismatch.html
@@ -68,7 +68,17 @@
<input id="invalid-06" type="text" pattern="[0-9" value="a"/>
<input id="empty-pattern-mismatch" type="text" pattern="" value="Lorem Ipsum"
-/><input id="disabled" pattern="[0-9][A-Z]{3}" value="00AA" disabled /></div>
+/><input id="disabled" pattern="[0-9][A-Z]{3}" value="00AA" disabled />
+
+<input id="unicode-invalid-01" pattern="\@" value="a">
+<input id="unicode-invalid-02" pattern="\p" value="o">
+<input id="unicode-match-01" pattern="." value="&#x1F418;">
+<input id="unicode-match-02" pattern="\u{1f418}" value="&#x1F418;">
+<input id="unicode-match-03" pattern="ele[\u{1f418}]" value="ele&#x1F418;">
+<input id="unicode-match-04" pattern="[^A]" value="&#x1F418;">
+<input id="unicode-mismatch-01" pattern=".." value="&#x1F418;">
+
+</div>
<script language="JavaScript" type="text/javascript">
function patternMismatchFor(id) {
return document.getElementById(id).validity.patternMismatch;
@@ -142,6 +152,14 @@ shouldBeFalse('patternMismatchFor("invalid-06")');
shouldBeFalse('patternMismatchFor("disabled")');
+shouldBeFalse('patternMismatchFor("unicode-invalid-01")');
+shouldBeFalse('patternMismatchFor("unicode-invalid-02")');
+shouldBeFalse('patternMismatchFor("unicode-match-01")');
+shouldBeFalse('patternMismatchFor("unicode-match-02")');
+shouldBeFalse('patternMismatchFor("unicode-match-03")');
+shouldBeFalse('patternMismatchFor("unicode-match-04")');
+shouldBeTrue('patternMismatchFor("unicode-mismatch-01")');
+
document.body.removeChild(document.getElementById('container'));
</script>
</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/ValidityState-patternMismatch-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698