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/fast/backgrounds/root-background-display-none-no-crash.html

Issue 1200263004: Should not crash when background image a display:none presents on the root (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: revise test Created 5 years, 6 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/fast/backgrounds/root-background-display-none-no-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/backgrounds/root-background-display-none-no-crash.html
diff --git a/LayoutTests/fast/backgrounds/root-background-display-none-no-crash.html b/LayoutTests/fast/backgrounds/root-background-display-none-no-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..86d248d45e9e5cf644b07d852b37b4fd18fe31c2
--- /dev/null
+++ b/LayoutTests/fast/backgrounds/root-background-display-none-no-crash.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<style>
+html {
+ display: none;
+ background-image: linear-gradient(black, black);
+}
+</style>
+<script src='../../resources/run-after-layout-and-paint.js'></script>
+<script>
+runAfterLayoutAndPaint(function(){
+ document.write("PASS");
+ if (window.testRunner)
+ testRunner.dumpAsText();
+}, true);
+</script>
+This test should not crash due to referencing a null root element renderer when painting root background.
« no previous file with comments | « no previous file | LayoutTests/fast/backgrounds/root-background-display-none-no-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698