Chromium Code Reviews| 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> |