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

Unified Diff: LayoutTests/compositing/layer-creation/should-invoke-deferred-compositing.html

Issue 289873002: Remove isCompositorFramePending plumbing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Expectations for virtual suite Created 6 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 | « LayoutTests/TestExpectations ('k') | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/compositing/layer-creation/should-invoke-deferred-compositing.html
diff --git a/LayoutTests/compositing/layer-creation/should-invoke-deferred-compositing.html b/LayoutTests/compositing/layer-creation/should-invoke-deferred-compositing.html
index 29292bd17c1e50273873fb954a0de273eca098ec..804d0bf3a726d816971f945ea3c7103672da4474 100644
--- a/LayoutTests/compositing/layer-creation/should-invoke-deferred-compositing.html
+++ b/LayoutTests/compositing/layer-creation/should-invoke-deferred-compositing.html
@@ -11,7 +11,7 @@
<html>
<head>
-<script src="../../resources/run-after-display.js"></script>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
<style>
.composited {
@@ -37,52 +37,20 @@ canvas {
</style>
<script>
-
- if (window.testRunner)
- testRunner.dumpAsText();
-
-
- var canvasElement;
-
- function addCanvasToTree() {
- document.getElementById("container").appendChild(canvasElement);
- }
-
- function runTest() {
- canvasElement = document.createElement("canvas");
+ function repaintTest() {
+ var canvasElement = document.createElement("canvas");
canvasElement.width = 200;
canvasElement.height = 200;
var context = canvasElement.getContext("2d");
context.fillStyle = "green";
context.fillRect(80, 80, 50, 50);
-
- if (!window.testRunner) {
- // If the test is being run interactively, then
- // the canvas should correctly appear after 1 second.
- setTimeout(addCanvasToTree, 1000);
- return;
- }
-
- testRunner.waitUntilDone();
-
- runAfterDisplay(function() {
- // This should initiate a compositor frame via scheduleAnimation().
- addCanvasToTree();
-
- if (window.internals.isCompositorFramePending(document))
- document.getElementById("result").innerHTML = "PASS - did schedule animation";
- else
- document.getElementById("result").innerHTML = "FAIL - did not schedule animation";
- testRunner.notifyDone();
- });
+ document.getElementById("container").appendChild(canvasElement);
}
-
</script>
</head>
-<body onload="runTest()">
+<body onload="runRepaintAndPixelTest()">
<div id="container" class="composited box"></div>
- <div id="result">The green box should appear after 1 second when running this test interactively.</div>
</body>
</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698