Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / css / fontface-properties.html
index f634f0e..bbe8eb1 100644 (file)
@@ -72,13 +72,17 @@ function runTests() {
     shouldBeEqualToString('modifiedFace.featureSettings', "'dlig' 1, 'liga' 0");
 
     debug('');
-    shouldThrow("new FontFace('test', 'invalid_src')");
     face = new FontFace('test', 'local(foo)');
     shouldThrow("face.style = ''");
     shouldThrow("face.weight = 'a'");
     shouldThrow("face.unicodeRange = 'U+'");
     shouldThrow("face.variant = '???'");
     shouldThrow("face.featureSettings = null");
+    promise1 = face.loaded;
+    promise2 = face.load();
+    promise3 = face.loaded;
+    shouldBeTrue('promise1 === promise2');
+    shouldBeTrue('promise1 === promise3');
 }
 
 if (document.fonts)