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

Side by Side Diff: LayoutTests/fast/dom/processing-instruction-appendChild-exceptions.xhtml

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
1 <html xmlns="http://www.w3.org/1999/xhtml"> 1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <body> 2 <body>
3 <script src="../js/resources/js-test-pre.js"></script> 3 <script src="../js/resources/js-test-pre.js"></script>
4 <script> 4 <script>
5 <![CDATA[ 5 <![CDATA[
6 description("Test that appropriate exceptions are thrown when adding children to a ProcessingInstruction."); 6 description("Test that appropriate exceptions are thrown when adding children to a ProcessingInstruction.");
7 var pi = document.createProcessingInstruction('target', 'data'); 7 var pi = document.createProcessingInstruction('target', 'data');
8 shouldThrow("pi.appendChild(null)", '"HierarchyRequestError: Failed to execute \ 'appendChild\' on \'Node\': This node type does not support this method."'); 8 shouldThrow("pi.appendChild(null)", '"HierarchyRequestError: Failed to execute \ 'appendChild\' on \'Node\': This node type does not support this method."');
9 var div = document.createElement('div'); 9 var div = document.createElement('div');
10 shouldThrow("pi.appendChild(div)", '"HierarchyRequestError: Failed to execute \' appendChild\' on \'Node\': This node type does not support this method."'); 10 shouldThrow("pi.appendChild(div)", '"HierarchyRequestError: Failed to execute \' appendChild\' on \'Node\': This node type does not support this method."');
11 var textNode = document.createTextNode('sometext'); 11 var textNode = document.createTextNode('sometext');
12 shouldThrow("pi.appendChild(textNode)", '"HierarchyRequestError: Failed to execu te \'appendChild\' on \'Node\': This node type does not support this method."'); 12 shouldThrow("pi.appendChild(textNode)", '"HierarchyRequestError: Failed to execu te \'appendChild\' on \'Node\': This node type does not support this method."');
13 ]]> 13 ]]>
14 </script> 14 </script>
15 <script src="../js/resources/js-test-post.js"></script>
16 </body> 15 </body>
17 </html> 16 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698