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

Unified Diff: content/browser/webkit_browsertest.cc

Issue 2800633003: Test that main thread frames cease to fire during composited animation
Patch Set: removestacktrace Created 3 years, 8 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 | « cc/trees/layer_tree_host_impl.cc ('k') | content/test/data/transform-animation.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/webkit_browsertest.cc
diff --git a/content/browser/webkit_browsertest.cc b/content/browser/webkit_browsertest.cc
index bd67587a327c33398fa3b89106235920a7783af7..0ed05b5005628655c8a4c1ecf1f56e435447bad4 100644
--- a/content/browser/webkit_browsertest.cc
+++ b/content/browser/webkit_browsertest.cc
@@ -4,6 +4,7 @@
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/browser/web_contents.h"
+#include "content/public/test/browser_test_utils.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/shell/browser/shell.h"
@@ -75,4 +76,18 @@ IN_PROC_BROWSER_TEST_F(WebKitBrowserTest, PrerenderNoCrash) {
EXPECT_FALSE(shell()->web_contents()->IsCrashed());
}
+const char kTransformAnimationPage[] = "/transform-animation.html";
+IN_PROC_BROWSER_TEST_F(WebKitBrowserTest, TransformAnimationMainThreadFrames) {
+ ASSERT_TRUE(embedded_test_server()->Start());
+ URLRequestAbortOnEndJob::AddUrlHandler();
+ GURL url = embedded_test_server()->GetURL(kTransformAnimationPage);
+
+ NavigateToURL(shell(), url);
+
+ WebContents* web_contents = shell()->web_contents();
+ FrameWatcher frame_watcher(web_contents);
+ frame_watcher.WaitFrames(3);
+ ASSERT_FALSE(frame_watcher.LastMetadata().is_main_thread_frame);
+}
+
} // namespace content
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | content/test/data/transform-animation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698