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

Side by Side Diff: LayoutTests/fast/forms/pattern-attribute-invalid-regex.html

Issue 13896017: Switch RegularExpression from YARR to V8 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review from adamk and abarth Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2
3 <script src="../../fast/js/resources/js-test-pre.js"></script>
4
5 <script>
6 description('Check if the pattern constraint is ignored when the regex is invali d.');
7
8 var input = document.createElement('input');
9 input.pattern = '[0-9'; // missing a ]
10 input.value = '11';
11
12 // pattern should have been ignored.
13 shouldBe('input.validity.patternMismatch', 'false');
14 </script>
15
16 <script src="../../fast/js/resources/js-test-post.js"></script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698