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

Unified Diff: tests/html/fontface_loaded_test.dart

Issue 661603003: Revert "Stop suppressing generation of bindings with Promise. Add some tests for DOM APIs that answ… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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/html.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/fontface_loaded_test.dart
diff --git a/tests/html/fontface_loaded_test.dart b/tests/html/fontface_loaded_test.dart
deleted file mode 100644
index d1926880ae89c66f7f052293d236fb2906193cb7..0000000000000000000000000000000000000000
--- a/tests/html/fontface_loaded_test.dart
+++ /dev/null
@@ -1,46 +0,0 @@
-library fontface_loaded_test;
-
-import 'package:unittest/unittest.dart';
-import 'package:unittest/html_config.dart';
-
-import 'dart:async';
-import 'dart:isolate';
-import 'dart:html';
-
-class NullTreeSanitizer implements NodeTreeSanitizer {
- void sanitizeTree(Node node) {}
-}
-
-main() {
- useHtmlConfiguration();
-
- var style = new Element.html('''
- <style>
- @font-face {
- font-family: 'Ahem';
- src: url(../../resources/Ahem.ttf);
- font-style: italic;
- font-weight: 300;
- unicode-range: U+0-3FF;
- font-variant: small-caps;
- -webkit-font-feature-settings: "dlig" 1;
- /* font-stretch property is not supported */
- }
- </style>
- ''', treeSanitizer: new NullTreeSanitizer());
- document.head.append(style);
-
-
- test('document fonts - temporary', () {
- var atLeastOneFont = false;
- document.fonts.forEach((FontFace fontFace, _, __) {
- atLeastOneFont = true;
- Future f1 = fontFace.loaded;
- Future f2 = fontFace.loaded;
- expect(f1, equals(f2)); // Repeated calls should answer the same Future.
-
- expect(fontFace.load(), throws);
- });
- expect(atLeastOneFont, isTrue);
- });
-}
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698