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

Unified Diff: LayoutTests/editing/pasteboard/insert-font-weight.html

Issue 23075004: Fixes a crash when copying elements with font-weight lighter or bolder (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/pasteboard/insert-font-weight.html
diff --git a/LayoutTests/editing/pasteboard/insert-font-weight.html b/LayoutTests/editing/pasteboard/insert-font-weight.html
new file mode 100644
index 0000000000000000000000000000000000000000..5b610615948e9efc1f938d632ff74c7b56010aa7
--- /dev/null
+++ b/LayoutTests/editing/pasteboard/insert-font-weight.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+ <body>
+ <div id="container" contenteditable="true"></div>
+ <div id="content"><span style="font-weight: lighter;">hello</span><span style="font-weight: bolder;">world</span></div>
+ <script src="../../resources/dump-as-markup.js"></script>
+ <script>
+ Markup.description('This tests inserting elements with font-weight set to lighter and bolder values');
+
+ var content = document.getElementById('content');
+ Markup.dump(content, 'Content to insert');
+
+ document.querySelector('div[contenteditable]').focus();
+ document.execCommand('InsertHTML', null, content.innerHTML);
+
+ Markup.dump('container', 'After insertion');
+ </script>
+ </body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/editing/pasteboard/insert-font-weight-expected.txt » ('j') | Source/core/editing/EditingStyle.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698