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

Unified Diff: LayoutTests/compositing/overflow/do-not-crash-when-checking-frame-view-is-scrollable.html

Issue 23641004: Ignore should-scroll-on-main-thread if main frame is not scrollable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 7 years, 3 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/compositing/overflow/do-not-crash-when-checking-frame-view-is-scrollable.html
diff --git a/LayoutTests/compositing/overflow/do-not-crash-when-checking-frame-view-is-scrollable.html b/LayoutTests/compositing/overflow/do-not-crash-when-checking-frame-view-is-scrollable.html
new file mode 100644
index 0000000000000000000000000000000000000000..e525c16ccac6c574962cc5e9838a926b6869a275
--- /dev/null
+++ b/LayoutTests/compositing/overflow/do-not-crash-when-checking-frame-view-is-scrollable.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <link rel="stylesheet" type="text/css" href="do-not-crash-when-checking-frame-view-is-scrollable.css">
+ <script src="../../fast/js/resources/js-test-pre.js"></script>
+ <script>
+ document.createElement("div").offsetParent;
+
+ if (window.internals) {
+ testPassed("Did not crash");
+ } else {
+ description("This test ensures that we do not crash when the document body has no style when" +
+ " we check if the main frame is scrollable (which it is in this case).");
+ }
+ </script>
+ <script src="../../fast/js/resources/js-test-post.js"></script>
+</head>
+<body>
+</body>
+</html>
+

Powered by Google App Engine
This is Rietveld 408576698