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

Side by Side Diff: LayoutTests/editing/pasteboard/paste-noscript-xhtml.xhtml

Issue 1208253002: Remove editing/pasteboard/paste-noscript-xhtml.xhtml (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or g/TR/html4/loose.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <body onload="runTest()">
5 <div id="description">
6 This test copies the content of an iframe and pastes it
7 in an editable area in an xhtml document and verifies that no script, handlers o r javascript urls are copied.
8 </div>
9 <iframe id="iframe1" src="resources/paste-noscript-content.html"></iframe>
10 <div id="pastehere" contenteditable="true"></div>
11 <script src="../../resources/dump-as-markup.js"></script>
12 <script>
13
14 Markup.waitUntilDone();
15
16 function runTest() {
17 Markup.description(document.getElementById('description').textContent);
18
19 var doc = frames[0].document;
20 getSelection().collapse(doc.body, 0);
21 doc.execCommand("SelectAll");
22 doc.execCommand("Copy");
23
24 Markup.dump(doc.body, 'Copied content');
25
26 getSelection().collapse(document.getElementById("pastehere"), 0);
27 document.execCommand("Paste");
28 Markup.dump('pastehere', 'Pasted content');
29
30 Markup.notifyDone();
31 }
32
33 </script>
34 </body>
35 </html>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/editing/pasteboard/paste-noscript-xhtml-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698