[GTK][WPE] QR code not loaded in web.whatsapp.com
[WebKit-https.git] / LayoutTests / fast / forms / ValidityState-patternMismatch-unsupported.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 <p id="description"></p>
8 <div id="console"></div>
9 <script>
10 description('Check if the pattern constraint is not applied to some input types.');
11
12 var input = document.createElement('input');
13 input.type = 'range';
14 input.pattern = '[0-9]';  // Restrict to single digit
15 input.value = '11';
16
17 // pattern doesn't work for type=range
18 shouldBe('input.validity.patternMismatch', 'false');
19
20 // works for type=text.
21 input.type = 'text';
22 shouldBe('input.validity.patternMismatch', 'true');
23
24 </script>
25 <script src="../../resources/js-test-post.js"></script>
26 </body>
27 </html>