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

Unified Diff: LayoutTests/editing/execCommand/remove-format-iframe-in-button.html

Issue 342483002: The length of a TextIterator containing replaced element is at least 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/editing/execCommand/remove-format-iframe-in-button.html
diff --git a/LayoutTests/editing/execCommand/remove-format-iframe-in-button.html b/LayoutTests/editing/execCommand/remove-format-iframe-in-button.html
new file mode 100644
index 0000000000000000000000000000000000000000..eb9c2e558063044c54a05048085a52cd0b5371d3
--- /dev/null
+++ b/LayoutTests/editing/execCommand/remove-format-iframe-in-button.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <script type="text/javascript">
Yuta Kitamura 2014/06/18 03:14:38 I generally recommend NOT indenting nested HTML el
+
+ function runTest() {
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ document.designMode="on";
+ var button = document.getElementById('test');
Yuta Kitamura 2014/06/18 03:14:38 This variable seems unused.
+ document.execCommand("SelectAll");
+ document.execCommand("RemoveFormat");
+ Markup.dump("test");
+ }
+ </script>
+
Yuta Kitamura 2014/06/18 03:14:38 Unnecessary blank line.
+</head>
+
Yuta Kitamura 2014/06/18 03:14:38 Ditto.
+<body onload="runTest()">
+ <script type="text/javascript" src="../../resources/dump-as-markup.js"></script>
+ <button id="test">
Yuta Kitamura 2014/06/18 03:14:38 Weird indentation.
+ <iframe></iframe>
+ </button>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698