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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/cached-sheet-assert.html

Issue 1961173003: Corrected assert for cacheable stylesheets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | third_party/WebKit/LayoutTests/fast/css/cached-sheet-assert-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/css/cached-sheet-assert.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/cached-sheet-assert.html b/third_party/WebKit/LayoutTests/fast/css/cached-sheet-assert.html
new file mode 100644
index 0000000000000000000000000000000000000000..363fc0a8fcd7ac9684908c06a0c8b078173e5fd2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/cached-sheet-assert.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<style id="styleElement">@media all { } </style>
+<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ var s = document.getElementById("styleElement");
+ document.head.appendChild(s.cloneNode(true));
+ s.sheet.cssRules[0].insertRule("div { }", 0);
+</script>
+<p>This test should not crash/assert.</p>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/cached-sheet-assert-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698