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

Side by Side Diff: LayoutTests/inspector/elements/set-outer-html-2.html

Issue 9389003: Merge 107242 - Web Inspector: fix setOuterHTML for the case that adds / removes duplicate. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 10 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 3
4 <script src="../../http/tests/inspector/inspector-test.js"></script> 4 <script src="../../http/tests/inspector/inspector-test.js"></script>
5 <script src="../../http/tests/inspector/elements-test.js"></script> 5 <script src="../../http/tests/inspector/elements-test.js"></script>
6 <script src="set-outer-html-test.js"></script> 6 <script src="set-outer-html-test.js"></script>
7 <script> 7 <script>
8 8
9 function onload() 9 function onload()
10 { 10 {
(...skipping 27 matching lines...) Expand all
38 { 38 {
39 var text = InspectorTest.containerText.replace("<h2>Getting involved </h2>", ""); 39 var text = InspectorTest.containerText.replace("<h2>Getting involved </h2>", "");
40 var text = text.replace("</div>", "<h2>Getting involved</h2></div>") ; 40 var text = text.replace("</div>", "<h2>Getting involved</h2></div>") ;
41 InspectorTest.setOuterHTML(text, next); 41 InspectorTest.setOuterHTML(text, next);
42 }, 42 },
43 43
44 function testEditTwoRoots(next) 44 function testEditTwoRoots(next)
45 { 45 {
46 var text = InspectorTest.containerText + "<div>Additional node</div> "; 46 var text = InspectorTest.containerText + "<div>Additional node</div> ";
47 InspectorTest.setOuterHTML(text, next); 47 InspectorTest.setOuterHTML(text, next);
48 },
49
50 function testDupeNode(next)
51 {
52 InspectorTest.patchOuterHTML("<h2>Getting involved</h2>", "<h2>Getti ng involved</h2><h2>Getting involved</h2>", next);
48 } 53 }
49 ]); 54 ]);
50 } 55 }
51 </script> 56 </script>
52 </head> 57 </head>
53 58
54 <body onload="onload()"> 59 <body onload="onload()">
55 <p> 60 <p>
56 Tests DOMAgent.setOuterHTML protocol method (part 2). 61 Tests DOMAgent.setOuterHTML protocol method (part 2).
57 </p> 62 </p>
58 63
59 <div id="container" style="display:none"> 64 <div id="container" style="display:none">
60 <h2>Welcome to the website for the WebKit Open Source Project!</h2> 65 <p>WebKit is used by <a href="http://www.apple.com/safari/">Safari</a>, Dashboar d, etc..</p>
61 <p>WebKit is used by <a href="http://www.apple.com/safari/">Safari</a>, Dashboar d, etc.</a>.</p>
62
63 <h2>Getting involved</h2> 66 <h2>Getting involved</h2>
64 <a href="http://nightly.webkit.org/"></a>
65 <p id="identity">There are many ways to get involved. You can:</p> 67 <p id="identity">There are many ways to get involved. You can:</p>
66 <ul> 68 <ul>
67 <li></li> 69 <li></li>
68 </ul> 70 </ul>
69 <ul> 71 <ul>
70 <li></li> 72 <li></li>
71 </ul> 73 </ul>
72 </div> 74 </div>
73 75
74 </body> 76 </body>
75 </html> 77 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/elements/set-outer-html.html ('k') | LayoutTests/inspector/elements/set-outer-html-2-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698