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

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

Issue 192373008: ASSERTION FAILED: !style->propertyIsImportant(propertyID) in WebCore::setTextDecorationProperty (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/remove-format-textdecoration-in-iframe-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/execCommand/remove-format-textdecoration-in-iframe.html
diff --git a/LayoutTests/editing/execCommand/remove-format-textdecoration-in-iframe.html b/LayoutTests/editing/execCommand/remove-format-textdecoration-in-iframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..852e505d1ce3b72259d957acbace976fa73224b3
--- /dev/null
+++ b/LayoutTests/editing/execCommand/remove-format-textdecoration-in-iframe.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<script src="../../resources/dump-as-markup.js"></script>
+<script>
+ function selectAndRemoveFormat()
+ {
+ document.designMode = 'on';
+ document.execCommand('SelectAll');
+ document.execCommand('RemoveFormat');
+ }
+
+ function dumpAfterCommand()
+ {
+ Markup.description('This testcase is to test crash scenario when designMode is set on document and RemoveFormat is called. Expected result is that crash should not happen and underline should be removed from all the selected text')
+ Markup.dump('container');
+ }
+</script>
+<body>
+ <div id="container" style="text-decoration: underline !important;">This Test should not crash.
+ <iframe onload="selectAndRemoveFormat()"></iframe>
+ <p>PASS</p>
+ </div>
+ <script>
+ dumpAfterCommand();
+ </script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/remove-format-textdecoration-in-iframe-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698