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

Side by Side Diff: tests/html/measurement_tests.dart

Issue 10191033: test renaming overhaul: step 4 client tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 void testMeasurement() { 5 void testMeasurement() {
6 asyncTest('measurement is async but before setTimout 0', 1, () { 6 asyncTest('measurement is async but before setTimout 0', 1, () {
7 final element = document.body; 7 final element = document.body;
8 bool timeout0 = false; 8 bool timeout0 = false;
9 bool fnComplete = false; 9 bool fnComplete = false;
10 bool animationFrame = false; 10 bool animationFrame = false;
(...skipping 22 matching lines...) Expand all
33 final element = document.body; 33 final element = document.body;
34 rect = element.rect; 34 rect = element.rect;
35 computedStyle = element.computedStyle; 35 computedStyle = element.computedStyle;
36 Expect.isFalse(rect.isComplete); 36 Expect.isFalse(rect.isComplete);
37 Expect.isFalse(computedStyle.isComplete); 37 Expect.isFalse(computedStyle.isComplete);
38 }); 38 });
39 39
40 // TODO(jacobr): add more tests that the results return by measurement 40 // TODO(jacobr): add more tests that the results return by measurement
41 // functions are correct. 41 // functions are correct.
42 } 42 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698