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

Unified Diff: co19/tests/co19/src/LayoutTests/fast/css/fontface-properties_t01.dart

Issue 607643002: Fixed match Javascript tests (bad font src no longer throws) Base URL: http://co19.googlecode.com/svn/trunk
Patch Set: Created 6 years, 3 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: co19/tests/co19/src/LayoutTests/fast/css/fontface-properties_t01.dart
diff --git a/co19/tests/co19/src/LayoutTests/fast/css/fontface-properties_t01.dart b/co19/tests/co19/src/LayoutTests/fast/css/fontface-properties_t01.dart
index ddacb2081cab76d1ef5212eeb67065cb17c0b2be..ea1532030d056c7697f839a44ae381dba2638661 100644
--- a/co19/tests/co19/src/LayoutTests/fast/css/fontface-properties_t01.dart
+++ b/co19/tests/co19/src/LayoutTests/fast/css/fontface-properties_t01.dart
@@ -84,13 +84,19 @@ main() {
shouldBeEqualToString(modifiedFace.featureSettings, "'dlig' 1, 'liga' 0");
debug('');
- shouldThrow(() => new FontFace('test', 'invalid_src', {}));
var face = new FontFace('test', 'local(foo)', {});
shouldThrow(() => face.style = '');
shouldThrow(() => face.weight = 'a');
shouldThrow(() => face.unicodeRange = 'U+');
shouldThrow(() => face.variant = '???');
shouldThrow(() => face.featureSettings = null);
+ // TODO(terry): When promises are available in Dartium; below tests should
+ // be enabled (issue #21099)
+ // promise1 = face.loaded;
+ // promise2 = face.load();
+ // promise3 = face.loaded;
+ // shouldBeTrue(() => promise1 === promise2);
+ // shouldBeTrue(() => promise1 === promise3);
}
if (document.fonts != null)
« 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