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

Unified Diff: tests/html/cssstyledeclaration_test.dart

Issue 12087004: Changing window.requestLayoutFrame into a microtask API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | tests/html/measurement_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/cssstyledeclaration_test.dart
diff --git a/tests/html/cssstyledeclaration_test.dart b/tests/html/cssstyledeclaration_test.dart
index b17643694c722c979bdaabec6069ca9440df46cf..a0ef366835b86183c7f26b1c07b7c31e94b24bb5 100644
--- a/tests/html/cssstyledeclaration_test.dart
+++ b/tests/html/cssstyledeclaration_test.dart
@@ -72,13 +72,10 @@ main() {
element.style.transform = 'translateX(10px)';
document.body.children.add(element);
- element.getComputedStyle('').then(expectAsync1(
- (CssStyleDeclaration style) {
- // Some browsers will normalize this, so it'll be a matrix rather than
- // the original string. Just check that it's something other than null.
- expect(style.transform.length, greaterThan(3));
- }
- ));
+ var style = element.getComputedStyle();
+ // Some browsers will normalize this, so it'll be a matrix rather than
+ // the original string. Just check that it's something other than null.
+ expect(style.transform.length, greaterThan(3));
});
// IE9 requires an extra poke for some properties to get applied.
@@ -89,11 +86,8 @@ main() {
// Need to wait one tick after the element has been added to the page.
window.setTimeout(expectAsync0(() {
element.style.textDecoration = 'underline';
- element.getComputedStyle('').then(expectAsync1(
- (CssStyleDeclaration style) {
- expect(style.textDecoration, equals('underline'));
- }
- ));
+ var style = element.getComputedStyle();
+ expect(style.textDecoration, equals('underline'));
}), 10);
});
}
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tests/html/measurement_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698