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

Side by Side Diff: LayoutTests/editing/execCommand/insertImage-src.html

Issue 788153003: Make execCommand("insertImage", false, "") not add a src attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « no previous file | Source/core/editing/EditorCommand.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>execCommand("insertImage") src attribute</title>
5 <script src="../../resources/testharness.js"></script>
6 <script src="../../resources/testharnessreport.js"></script>
7 </head>
8 <body>
9 <div id="log"></div>
10 <script>
11 function t(value, innerHTML) {
12 test(function() {
Yuta Kitamura 2014/12/11 02:35:50 We usually apply Blink's (C++) coding style in Jav
philipj_slow 2014/12/11 08:20:38 http://www.chromium.org/blink/coding-style/layout-
13 var e = document.createElement("div");
14 e.contentEditable = true;
15 document.body.appendChild(e);
16 e.focus();
17 document.execCommand("insertImage", false, value);
18 assert_equals(e.innerHTML, innerHTML);
19 document.body.removeChild(e);
20 }, 'document.execCommand("insertImage", false, ' + value + ')');
21 }
22 t(undefined, "<img>");
23 t(null, "<img>");
24 t("", "<img>");
25 t(" ", '<img src=" ">');
26 t("image", '<img src="image">');
27 </script>
28 </body>
29 </html>
OLDNEW
« no previous file with comments | « no previous file | Source/core/editing/EditorCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698