mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 13:08:10 +00:00
5397482fcc
BUG= R=terry@google.com Review URL: https://codereview.chromium.org//1023363002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44688 260f80e4-7a28-3924-810f-c04153c831b5
23 lines
632 B
Dart
23 lines
632 B
Dart
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
library fontface_test;
|
|
|
|
import 'package:unittest/unittest.dart';
|
|
import 'package:unittest/html_config.dart';
|
|
|
|
import 'dart:html';
|
|
|
|
main() {
|
|
useHtmlConfiguration();
|
|
|
|
test("Creation with parameters", () {
|
|
var font =
|
|
new FontFace('Ahem', 'url(Ahem.ttf)', {'variant': 'small-caps'});
|
|
expect(font is FontFace, isTrue);
|
|
expect(font.family, 'Ahem');
|
|
expect(font.variant, 'small-caps');
|
|
});
|
|
}
|