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

Side by Side Diff: LayoutTests/fast/dom/Document/createProcessingInstruction-invalid-target.html

Issue 100433004: Sync Document.createProcessingInstruction() with spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: test createProcessingInstruction for HTML doc 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 <script src="../../../resources/js-test.js"></script>
6 </head>
7 <body>
8 <script>
9 [
10 // Invalid first Char
11 '0ascii',
12 '.Ascii',
13 '-Ascii',
14 ' ascii',
15 ' ascii',
16 '֑sc.ii',
17 '⃣scii',
18 'िascii',
19 'ʳascii',
20 // Invalid other char
21 'asc i',
22 'asc i',
23 'asciiⅦ'
24 ].forEach(function(target)
25 {
26 shouldThrow("document.createProcessingInstruction('" + target + "', '')");
27 });
28 </script>
29 </body>
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698