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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 Tests the basics of SpeechGrammar and SpeechGrammarList 1 Tests the basics of SpeechGrammar and SpeechGrammarList
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS 'webkitSpeechGrammar' in window is true 6 PASS 'webkitSpeechGrammar' in window is true
7 PASS webkitSpeechGrammar == null is false 7 PASS webkitSpeechGrammar == null is false
8 PASS 'webkitSpeechGrammarList' in window is true 8 PASS 'webkitSpeechGrammarList' in window is true
9 PASS webkitSpeechGrammarList == null is false 9 PASS webkitSpeechGrammarList == null is false
10 window.g = new webkitSpeechGrammar() 10 window.g = new webkitSpeechGrammar()
11 PASS g == null is false 11 PASS g == null is false
12 PASS g.weight is 1.0 12 PASS g.weight is 1.0
13 PASS g.src is '' 13 PASS g.src is ''
14 g.weight = 2 14 g.weight = 2
15 PASS g.weight is 2.0 15 PASS g.weight is 2.0
16 PASS g.weight = NaN threw exception TypeError: Failed to set the 'weight' proper ty on 'SpeechGrammar': The provided float value is non-finite..
17 PASS g.weight = Infinity threw exception TypeError: Failed to set the 'weight' p roperty on 'SpeechGrammar': The provided float value is non-finite..
18 PASS g.weight is 2.0
16 g.src = 'grammar.xml' 19 g.src = 'grammar.xml'
17 PASS g.src is base + 'grammar.xml' 20 PASS g.src is base + 'grammar.xml'
18 g.src = 'http://example.tld/grammar.xml' 21 g.src = 'http://example.tld/grammar.xml'
19 PASS g.src is 'http://example.tld/grammar.xml' 22 PASS g.src is 'http://example.tld/grammar.xml'
20 g.src = 'foo bar' 23 g.src = 'foo bar'
21 PASS g.src is base + 'foo%20bar' 24 PASS g.src is base + 'foo%20bar'
22 window.gs = new webkitSpeechGrammarList() 25 window.gs = new webkitSpeechGrammarList()
23 PASS gs == null is false 26 PASS gs == null is false
24 PASS gs.length is 0 27 PASS gs.length is 0
25 PASS gs.item(0) == null is true 28 PASS gs.item(0) == null is true
(...skipping 14 matching lines...) Expand all
40 PASS gs[1] is gs.item(1) 43 PASS gs[1] is gs.item(1)
41 PASS gs.item(1).src is 'http://foo.tld/grammar.xml' 44 PASS gs.item(1).src is 'http://foo.tld/grammar.xml'
42 PASS gs.item(1).weight is 3 45 PASS gs.item(1).weight is 3
43 gs.addFromString('foo', 4) 46 gs.addFromString('foo', 4)
44 PASS gs.length is 3 47 PASS gs.length is 3
45 PASS gs[2] is gs.item(2) 48 PASS gs[2] is gs.item(2)
46 PASS gs.item(2).src is 'data:application/xml,%3Cgrammar%3Efoo%3C/grammar%3E' 49 PASS gs.item(2).src is 'data:application/xml,%3Cgrammar%3Efoo%3C/grammar%3E'
47 PASS gs.item(2).weight is 4 50 PASS gs.item(2).weight is 4
48 PASS gs[2].src is 'data:application/xml,%3Cgrammar%3Efoo%3C/grammar%3E' 51 PASS gs[2].src is 'data:application/xml,%3Cgrammar%3Efoo%3C/grammar%3E'
49 PASS gs[2].weight is 4 52 PASS gs[2].weight is 4
53 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..
54 PASS gs.addFromUri('http://foo.tld/grammar.xml', Infinity) threw exception TypeE rror: Failed to execute 'addFromUri' on 'SpeechGrammarList': The provided float value is non-finite..
55 PASS gs.addFromString('foo', NaN) threw exception TypeError: Failed to execute ' addFromString' on 'SpeechGrammarList': The provided float value is non-finite..
56 PASS gs.addFromString('foo', Infinity) threw exception TypeError: Failed to exec ute 'addFromString' on 'SpeechGrammarList': The provided float value is non-fini te..
50 PASS successfullyParsed is true 57 PASS successfullyParsed is true
51 58
52 TEST COMPLETE 59 TEST COMPLETE
53 60
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698