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

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

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
Index: LayoutTests/fast/speech/scripted/speechgrammar-basics-expected.txt
diff --git a/LayoutTests/fast/speech/scripted/speechgrammar-basics-expected.txt b/LayoutTests/fast/speech/scripted/speechgrammar-basics-expected.txt
index 0c5290a50f5e6645c5cf9257763a31e5fc423dc6..d98cef5e1668d6dcf8b0b7a38ef3bd2354b2837f 100644
--- a/LayoutTests/fast/speech/scripted/speechgrammar-basics-expected.txt
+++ b/LayoutTests/fast/speech/scripted/speechgrammar-basics-expected.txt
@@ -13,6 +13,9 @@ PASS g.weight is 1.0
PASS g.src is ''
g.weight = 2
PASS g.weight is 2.0
+PASS g.weight = NaN threw exception TypeError: Failed to set the 'weight' property on 'SpeechGrammar': The provided float value is non-finite..
+PASS g.weight = Infinity threw exception TypeError: Failed to set the 'weight' property on 'SpeechGrammar': The provided float value is non-finite..
+PASS g.weight is 2.0
g.src = 'grammar.xml'
PASS g.src is base + 'grammar.xml'
g.src = 'http://example.tld/grammar.xml'
@@ -47,6 +50,10 @@ PASS gs.item(2).src is 'data:application/xml,%3Cgrammar%3Efoo%3C/grammar%3E'
PASS gs.item(2).weight is 4
PASS gs[2].src is 'data:application/xml,%3Cgrammar%3Efoo%3C/grammar%3E'
PASS gs[2].weight is 4
+PASS gs.addFromUri('http://foo.tld/grammar.xml', NaN) threw exception TypeError: Failed to execute 'addFromUri' on 'SpeechGrammarList': The provided float value is non-finite..
+PASS gs.addFromUri('http://foo.tld/grammar.xml', Infinity) threw exception TypeError: Failed to execute 'addFromUri' on 'SpeechGrammarList': The provided float value is non-finite..
+PASS gs.addFromString('foo', NaN) threw exception TypeError: Failed to execute 'addFromString' on 'SpeechGrammarList': The provided float value is non-finite..
+PASS gs.addFromString('foo', Infinity) threw exception TypeError: Failed to execute 'addFromString' on 'SpeechGrammarList': The provided float value is non-finite..
PASS successfullyParsed is true
TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698