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

Unified Diff: LayoutTests/fast/css/fontface-properties.html

Issue 128043003: Improve core/css exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test. Created 6 years, 11 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
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)
« no previous file with comments | « LayoutTests/fast/css/CSSPrimitiveValue-exceptions-expected.txt ('k') | LayoutTests/fast/css/fontface-properties-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698