Index: LayoutTests/fast/css/fontface-properties.html |
diff --git a/LayoutTests/fast/css/fontface-properties.html b/LayoutTests/fast/css/fontface-properties.html |
index 22278a298840339abb240fb0f2f83748e00334d0..511943b54442a1351abb26d76e323f568fc17536 100644 |
--- a/LayoutTests/fast/css/fontface-properties.html |
+++ b/LayoutTests/fast/css/fontface-properties.html |
@@ -66,14 +66,13 @@ function runTests() { |
shouldBeEqualToString('modifiedFace.featureSettings', "'dlig' 1, 'liga' 0"); |
debug(''); |
- var syntaxError = "'SyntaxError: An invalid or illegal string was specified.'"; |
- shouldThrow("new FontFace('test', 'invalid_src', {})", syntaxError); |
+ shouldThrow("new FontFace('test', 'invalid_src', {})"); |
face = new FontFace('test', 'local(foo)', {}); |
- shouldThrow("face.style = ''", syntaxError); |
- shouldThrow("face.weight = 'a'", syntaxError); |
- shouldThrow("face.unicodeRange = 'U+'", syntaxError); |
- shouldThrow("face.variant = '???'", syntaxError); |
- shouldThrow("face.featureSettings = null", syntaxError); |
+ shouldThrow("face.style = ''"); |
+ shouldThrow("face.weight = 'a'"); |
+ shouldThrow("face.unicodeRange = 'U+'"); |
+ shouldThrow("face.variant = '???'"); |
+ shouldThrow("face.featureSettings = null"); |
} |
if (document.fonts) |