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

Unified Diff: LayoutTests/fast/css/cssom-modify-font-face-rule.html

Issue 82583005: Use removeFontFace to avoid resetting fontSelector. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added 2 layout tests Created 7 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/css/cssom-modify-font-face-rule.html
diff --git a/LayoutTests/fast/css/font-face-remove.html b/LayoutTests/fast/css/cssom-modify-font-face-rule.html
similarity index 66%
copy from LayoutTests/fast/css/font-face-remove.html
copy to LayoutTests/fast/css/cssom-modify-font-face-rule.html
index 9f76e80bd388232a5943b4d7438506caa2592124..2fe9150ce7d4979f9645cc746a19ba6ff642b79a 100644
--- a/LayoutTests/fast/css/font-face-remove.html
+++ b/LayoutTests/fast/css/cssom-modify-font-face-rule.html
@@ -3,9 +3,10 @@
<head>
<script>
function runTest() {
- var target = document.getElementById('target');
document.body.offsetLeft;
- target.parentNode.removeChild(target);
+ console.log(document.styleSheets[0].cssRules[0].style.fontFamily);
ojan 2014/01/03 01:20:44 Are these console.logs accidentally included in th
tasak 2014/01/07 08:42:12 Sorry. I used the console.logs for debugging. Remo
+ document.styleSheets[0].cssRules[0].style.fontFamily = "f2";
+ console.log(document.styleSheets[0].cssRules[0].style.fontFamily);
}
</script>
</head>

Powered by Google App Engine
This is Rietveld 408576698