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

Unified Diff: tests/html/element_animate_test.dart

Issue 1026103003: Split up element_animate_test into groups to get more information about what might be timing out (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/element_animate_test.dart
diff --git a/tests/html/element_animate_test.dart b/tests/html/element_animate_test.dart
index b258ab624d8bee3131449baa5c2e2c2b8557ab06..f1ebf292ceacf93a76865c1875336c5e307598bc 100644
--- a/tests/html/element_animate_test.dart
+++ b/tests/html/element_animate_test.dart
@@ -16,7 +16,9 @@ main() {
test('supported', () {
expect(Notification.supported, true);
});
+ });
+ group('simple_timing', () {
test('simple timing', () {
var body = document.body;
var opacity = num.parse(body.getComputedStyle().opacity);
@@ -24,21 +26,24 @@ main() {
var newOpacity = num.parse(body.getComputedStyle().opacity);
expect(newOpacity < opacity, isTrue);
});
+ });
+ group('timing_dict', () {
test('timing dict', () {
var body = document.body;
// Animate different characteristics so the tests can run concurrently.
var fontSize = body.getComputedStyle().fontSize;
var player = body.animate(
- [{"font-size": "500px"}, {"font-size": fontSize}],
- {"duration": 100});
+ [{"font-size": "500px"}, {"font-size": fontSize}], {"duration": 100});
var newFontSize = body.getComputedStyle().fontSize;
// Don't bother to parse to numbers, as long as it's changed that
// indicates something is happening.
expect(newFontSize == fontSize, isFalse);
player.on['finish'].listen(expectAsync((_) => 'done'));
});
+ });
+ group('omit_timing', () {
test('omit timing', () {
var body = document.body;
var player = body.animate([
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698