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

Unified Diff: sky/tests/resources/display_list.dart

Issue 1175423007: Create an example app that demonstrates interactive coordination of an fn tree and a raw RenderObje… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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 | « sky/tests/raw/sector_layout-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/resources/display_list.dart
diff --git a/sky/tests/resources/display_list.dart b/sky/tests/resources/display_list.dart
index d5497d3cbd48bf0e688ef9062797b32323b1a90c..7a29787c4d9eefd0fc2a0b2b399b0b92a01c6942 100644
--- a/sky/tests/resources/display_list.dart
+++ b/sky/tests/resources/display_list.dart
@@ -1,5 +1,6 @@
import 'dart:sky' as sky;
+import "dart:sky.internals" as internals;
import 'package:sky/rendering/box.dart';
import 'package:sky/rendering/object.dart';
@@ -142,10 +143,16 @@ class TestRenderView extends RenderView {
RenderObject.debugDoingPaint = false;
}
+ // TEST API:
+
void checkFrame() {
RenderObject.flushLayout();
paintFrame();
print(lastPaint); // TODO(ianh): figure out how to make this fit the unit testing framework better
}
+ void endTest() {
+ internals.notifyTestComplete("PAINTED $frame FRAMES");
+ }
+
}
« no previous file with comments | « sky/tests/raw/sector_layout-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698