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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/Document/createProcessingInstruction-invalid-target.html
diff --git a/LayoutTests/fast/dom/Document/createProcessingInstruction-invalid-target.html b/LayoutTests/fast/dom/Document/createProcessingInstruction-invalid-target.html
new file mode 100644
index 0000000000000000000000000000000000000000..b9635ceeab1be00a811998ac2e8fadff160efdde
--- /dev/null
+++ b/LayoutTests/fast/dom/Document/createProcessingInstruction-invalid-target.html
@@ -0,0 +1,30 @@
+<!doctype html>
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<script src="../../../resources/js-test.js"></script>
+</head>
+<body>
+<script>
+[
+ // Invalid first Char
+ '0ascii',
+ '.Ascii',
+ '-Ascii',
+ ' ascii',
+ ' ascii',
+ '֑sc.ii',
+ '⃣scii',
+ 'िascii',
+ 'ʳascii',
+ // Invalid other char
+ 'asc i',
+ 'asc i',
+ 'asciiⅦ'
+].forEach(function(target)
+{
+ shouldThrow("document.createProcessingInstruction('" + target + "', '')");
+});
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698