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

Unified Diff: LayoutTests/fast/speech/scripted/speechgrammar-basics.html

Issue 933523004: Add TypeChecking=Unrestricted to Speech API interfaces (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | LayoutTests/fast/speech/scripted/speechgrammar-basics-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/speech/scripted/speechgrammar-basics.html
diff --git a/LayoutTests/fast/speech/scripted/speechgrammar-basics.html b/LayoutTests/fast/speech/scripted/speechgrammar-basics.html
index 695bd0aff63ccfa0e50474b6f56fbcb0ed2a15db..81a39bf9418e33fd0881f87cbd4ba74bb9cc3bdc 100644
--- a/LayoutTests/fast/speech/scripted/speechgrammar-basics.html
+++ b/LayoutTests/fast/speech/scripted/speechgrammar-basics.html
@@ -25,6 +25,9 @@ function run() {
// Test setting the attributes.
evalAndLog("g.weight = 2");
shouldBe("g.weight", "2.0");
+ shouldThrow("g.weight = NaN");
+ shouldThrow("g.weight = Infinity");
+ shouldBe("g.weight", "2.0");
evalAndLog("g.src = 'grammar.xml'");
shouldBe("g.src", "base + 'grammar.xml'");
evalAndLog("g.src = 'http://example.tld/grammar.xml'");
@@ -64,6 +67,12 @@ function run() {
shouldBe("gs.item(2).weight", "4");
shouldBe("gs[2].src", "'data:application/xml,%3Cgrammar%3Efoo%3C/grammar%3E'");
shouldBe("gs[2].weight", "4");
+
+ shouldThrow("gs.addFromUri('http://foo.tld/grammar.xml', NaN)");
+ shouldThrow("gs.addFromUri('http://foo.tld/grammar.xml', Infinity)");
+ shouldThrow("gs.addFromString('foo', NaN)");
+ shouldThrow("gs.addFromString('foo', Infinity)");
+
finishJSTest();
}
« no previous file with comments | « no previous file | LayoutTests/fast/speech/scripted/speechgrammar-basics-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698