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

Side by Side Diff: LayoutTests/fast/dom/non-numeric-values-numeric-parameters-expected.txt

Issue 1242233002: The index argument for HTMLCollection item() api should not be optional (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/script-tests/non-numeric-values-numeric-parameters.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 CONSOLE WARNING: Calling CSSStyleSheet.insertRule() with one argument is depreca ted. Please pass the index argument as well: insertRule(x, 0). 1 CONSOLE WARNING: Calling CSSStyleSheet.insertRule() with one argument is depreca ted. Please pass the index argument as well: insertRule(x, 0).
2 This tests the behavior of non-numeric values in contexts where the DOM has a nu meric parameter. 2 This tests the behavior of non-numeric values in contexts where the DOM has a nu meric parameter.
3 3
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
5 5
6 6
7 PASS nonNumericPolicy('document.createTextNode("a").substringData(x, 0)') is 'an y type allowed' 7 PASS nonNumericPolicy('document.createTextNode("a").substringData(x, 0)') is 'an y type allowed'
8 PASS nonNumericPolicy('document.createTextNode("a").substringData(0, x)') is 'an y type allowed (but not omitted)' 8 PASS nonNumericPolicy('document.createTextNode("a").substringData(0, x)') is 'an y type allowed (but not omitted)'
9 PASS nonNumericPolicy('document.createTextNode("a").insertData(x, "b")') is 'any type allowed' 9 PASS nonNumericPolicy('document.createTextNode("a").insertData(x, "b")') is 'any type allowed'
10 PASS nonNumericPolicy('document.createTextNode("a").deleteData(x, 0)') is 'any t ype allowed' 10 PASS nonNumericPolicy('document.createTextNode("a").deleteData(x, 0)') is 'any t ype allowed'
11 PASS nonNumericPolicy('document.createTextNode("a").deleteData(0, x)') is 'any t ype allowed (but not omitted)' 11 PASS nonNumericPolicy('document.createTextNode("a").deleteData(0, x)') is 'any t ype allowed (but not omitted)'
12 PASS nonNumericPolicy('document.createTextNode("a").replaceData(x, 0, "b")') is 'any type allowed' 12 PASS nonNumericPolicy('document.createTextNode("a").replaceData(x, 0, "b")') is 'any type allowed'
13 PASS nonNumericPolicy('document.createTextNode("a").replaceData(0, x, "b")') is 'any type allowed' 13 PASS nonNumericPolicy('document.createTextNode("a").replaceData(0, x, "b")') is 'any type allowed'
14 PASS nonNumericPolicy('createCSSMediaRule().insertRule(ruleText, x)') is 'any ty pe allowed (but not omitted)' 14 PASS nonNumericPolicy('createCSSMediaRule().insertRule(ruleText, x)') is 'any ty pe allowed (but not omitted)'
15 PASS nonNumericPolicy('createCSSMediaRule().deleteRule(x)') is 'any type allowed (but not omitted)' 15 PASS nonNumericPolicy('createCSSMediaRule().deleteRule(x)') is 'any type allowed (but not omitted)'
16 PASS nonNumericPolicy('createCSSRuleList().item(x)') is 'any type allowed (but n ot omitted)' 16 PASS nonNumericPolicy('createCSSRuleList().item(x)') is 'any type allowed (but n ot omitted)'
17 PASS nonNumericPolicy('createCSSStyleDeclaration().item(x)') is 'any type allowe d (but not omitted)' 17 PASS nonNumericPolicy('createCSSStyleDeclaration().item(x)') is 'any type allowe d (but not omitted)'
18 PASS nonNumericPolicy('createCSSStyleSheet().insertRule(ruleText, x)') is 'any t ype allowed' 18 PASS nonNumericPolicy('createCSSStyleSheet().insertRule(ruleText, x)') is 'any t ype allowed'
19 PASS nonNumericPolicy('createCSSStyleSheet().deleteRule(x)') is 'any type allowe d (but not omitted)' 19 PASS nonNumericPolicy('createCSSStyleSheet().deleteRule(x)') is 'any type allowe d (but not omitted)'
20 PASS nonNumericPolicy('createCSSStyleSheet().addRule(selector, styleText, x)') i s 'any type allowed' 20 PASS nonNumericPolicy('createCSSStyleSheet().addRule(selector, styleText, x)') i s 'any type allowed'
21 PASS nonNumericPolicy('createCSSStyleSheet().removeRule(x)') is 'any type allowe d' 21 PASS nonNumericPolicy('createCSSStyleSheet().removeRule(x)') is 'any type allowe d'
22 PASS nonNumericPolicy('document.elementFromPoint(x, 0)') is 'any type allowed' 22 PASS nonNumericPolicy('document.elementFromPoint(x, 0)') is 'any type allowed'
23 PASS nonNumericPolicy('document.elementFromPoint(0, x)') is 'any type allowed (b ut not omitted)' 23 PASS nonNumericPolicy('document.elementFromPoint(0, x)') is 'any type allowed (b ut not omitted)'
24 PASS nonNumericPolicy('document.body.scrollLeft = x') is 'any type allowed' 24 PASS nonNumericPolicy('document.body.scrollLeft = x') is 'any type allowed'
25 PASS nonNumericPolicy('document.body.scrollTop = x') is 'any type allowed' 25 PASS nonNumericPolicy('document.body.scrollTop = x') is 'any type allowed'
26 PASS nonNumericPolicy('document.images.item(x)') is 'any type allowed' 26 PASS nonNumericPolicy('document.images.item(x)') is 'any type allowed (but not o mitted)'
27 PASS nonNumericPolicy('document.createElement("input").setSelectionRange(x, 0)') is 'any type allowed' 27 PASS nonNumericPolicy('document.createElement("input").setSelectionRange(x, 0)') is 'any type allowed'
28 PASS nonNumericPolicy('document.createElement("input").setSelectionRange(0, x)') is 'any type allowed' 28 PASS nonNumericPolicy('document.createElement("input").setSelectionRange(0, x)') is 'any type allowed'
29 PASS nonNumericPolicy('createHTMLOptionsCollection().add(document.createElement( "option"), x)') is 'any type allowed' 29 PASS nonNumericPolicy('createHTMLOptionsCollection().add(document.createElement( "option"), x)') is 'any type allowed'
30 PASS nonNumericPolicy('createHTMLOptionsCollection().remove(x)') is 'any type al lowed (but not omitted)' 30 PASS nonNumericPolicy('createHTMLOptionsCollection().remove(x)') is 'any type al lowed (but not omitted)'
31 PASS nonNumericPolicy('createHTMLSelectElement().remove(x)') is 'any type allowe d' 31 PASS nonNumericPolicy('createHTMLSelectElement().remove(x)') is 'any type allowe d'
32 PASS nonNumericPolicy('createHTMLSelectElement().item(x)') is 'any type allowed (but not omitted)' 32 PASS nonNumericPolicy('createHTMLSelectElement().item(x)') is 'any type allowed (but not omitted)'
33 PASS nonNumericPolicy('createHTMLTableElement().insertRow(x)') is 'any type allo wed' 33 PASS nonNumericPolicy('createHTMLTableElement().insertRow(x)') is 'any type allo wed'
34 PASS nonNumericPolicy('createHTMLTableElement().deleteRow(x)') is 'any type allo wed (but not omitted)' 34 PASS nonNumericPolicy('createHTMLTableElement().deleteRow(x)') is 'any type allo wed (but not omitted)'
35 PASS nonNumericPolicy('createHTMLTableRowElement().insertCell(x)') is 'any type allowed' 35 PASS nonNumericPolicy('createHTMLTableRowElement().insertCell(x)') is 'any type allowed'
36 PASS nonNumericPolicy('createHTMLTableRowElement().deleteCell(x)') is 'any type allowed (but not omitted)' 36 PASS nonNumericPolicy('createHTMLTableRowElement().deleteCell(x)') is 'any type allowed (but not omitted)'
37 PASS nonNumericPolicy('createHTMLTableSectionElement().insertRow(x)') is 'any ty pe allowed' 37 PASS nonNumericPolicy('createHTMLTableSectionElement().insertRow(x)') is 'any ty pe allowed'
38 PASS nonNumericPolicy('createHTMLTableSectionElement().deleteRow(x)') is 'any ty pe allowed (but not omitted)' 38 PASS nonNumericPolicy('createHTMLTableSectionElement().deleteRow(x)') is 'any ty pe allowed (but not omitted)'
39 PASS nonNumericPolicy('document.createElement("textarea").setSelectionRange(x, 0 )') is 'any type allowed' 39 PASS nonNumericPolicy('document.createElement("textarea").setSelectionRange(x, 0 )') is 'any type allowed'
40 PASS nonNumericPolicy('document.createElement("textarea").setSelectionRange(0, x )') is 'any type allowed' 40 PASS nonNumericPolicy('document.createElement("textarea").setSelectionRange(0, x )') is 'any type allowed'
41 PASS nonNumericPolicy('document.createEvent("KeyboardEvent").initKeyboardEvent(" a", false, false, null, "b", x, false, false, false, false, false)') is 'any typ e allowed' 41 PASS nonNumericPolicy('document.createEvent("KeyboardEvent").initKeyboardEvent(" a", false, false, null, "b", x, false, false, false, false, false)') is 'any typ e allowed'
42 PASS nonNumericPolicy('createMediaList().item(x)') is 'any type allowed (but not omitted)' 42 PASS nonNumericPolicy('createMediaList().item(x)') is 'any type allowed (but not omitted)'
43 PASS nonNumericPolicy('document.createEvent("MouseEvent").initMouseEvent("a", fa lse, false, null, x, 0, 0, 0, 0, false, false, false, false, 0, null)') is 'any type allowed' 43 PASS nonNumericPolicy('document.createEvent("MouseEvent").initMouseEvent("a", fa lse, false, null, x, 0, 0, 0, 0, false, false, false, false, 0, null)') is 'any type allowed'
44 PASS nonNumericPolicy('document.createEvent("MouseEvent").initMouseEvent("a", fa lse, false, null, 0, x, 0, 0, 0, false, false, false, false, 0, null)') is 'any type allowed' 44 PASS nonNumericPolicy('document.createEvent("MouseEvent").initMouseEvent("a", fa lse, false, null, 0, x, 0, 0, 0, false, false, false, false, 0, null)') is 'any type allowed'
45 PASS nonNumericPolicy('document.createEvent("MouseEvent").initMouseEvent("a", fa lse, false, null, 0, 0, x, 0, 0, false, false, false, false, 0, null)') is 'any type allowed' 45 PASS nonNumericPolicy('document.createEvent("MouseEvent").initMouseEvent("a", fa lse, false, null, 0, 0, x, 0, 0, false, false, false, false, 0, null)') is 'any type allowed'
46 PASS nonNumericPolicy('document.createEvent("MouseEvent").initMouseEvent("a", fa lse, false, null, 0, 0, 0, x, 0, false, false, false, false, 0, null)') is 'any type allowed' 46 PASS nonNumericPolicy('document.createEvent("MouseEvent").initMouseEvent("a", fa lse, false, null, 0, 0, 0, x, 0, false, false, false, false, 0, null)') is 'any type allowed'
47 PASS nonNumericPolicy('document.createEvent("MouseEvent").initMouseEvent("a", fa lse, false, null, 0, 0, 0, 0, x, false, false, false, false, 0, null)') is 'any type allowed' 47 PASS nonNumericPolicy('document.createEvent("MouseEvent").initMouseEvent("a", fa lse, false, null, 0, 0, 0, 0, x, false, false, false, false, 0, null)') is 'any type allowed'
48 PASS nonNumericPolicy('document.createEvent("MouseEvent").initMouseEvent("a", fa lse, false, null, 0, 0, 0, 0, 0, false, false, false, false, x, null)') is 'any type allowed' 48 PASS nonNumericPolicy('document.createEvent("MouseEvent").initMouseEvent("a", fa lse, false, null, 0, 0, 0, 0, 0, false, false, false, false, x, null)') is 'any type allowed'
49 PASS nonNumericPolicy('document.body.attributes.item(x)') is 'any type allowed ( but not omitted)' 49 PASS nonNumericPolicy('document.body.attributes.item(x)') is 'any type allowed ( but not omitted)'
50 PASS nonNumericPolicy('document.createNodeIterator(document, x, null, false)') i s 'any type allowed' 50 PASS nonNumericPolicy('document.createNodeIterator(document, x, null, false)') i s 'any type allowed'
51 PASS nonNumericPolicy('document.getElementsByTagName("div").item(x)') is 'any ty pe allowed' 51 PASS nonNumericPolicy('document.getElementsByTagName("div").item(x)') is 'any ty pe allowed (but not omitted)'
52 PASS nonNumericPolicy('document.createRange().setStart(document, x)') is 'any ty pe allowed (but not omitted)' 52 PASS nonNumericPolicy('document.createRange().setStart(document, x)') is 'any ty pe allowed (but not omitted)'
53 PASS nonNumericPolicy('document.createRange().setEnd(document, x)') is 'any type allowed (but not omitted)' 53 PASS nonNumericPolicy('document.createRange().setEnd(document, x)') is 'any type allowed (but not omitted)'
54 PASS nonNumericPolicy('document.createRange().comparePoint(document, x)') is 'an y type allowed (but not omitted)' 54 PASS nonNumericPolicy('document.createRange().comparePoint(document, x)') is 'an y type allowed (but not omitted)'
55 PASS nonNumericPolicy('document.createRange().isPointInRange(document, x)') is ' any type allowed (but not omitted)' 55 PASS nonNumericPolicy('document.createRange().isPointInRange(document, x)') is ' any type allowed (but not omitted)'
56 PASS nonNumericPolicy('getSelection().collapse(document, x)') is 'any type allow ed' 56 PASS nonNumericPolicy('getSelection().collapse(document, x)') is 'any type allow ed'
57 PASS nonNumericPolicy('getSelection().setBaseAndExtent(document, x, document, 0) ') is 'any type allowed' 57 PASS nonNumericPolicy('getSelection().setBaseAndExtent(document, x, document, 0) ') is 'any type allowed'
58 PASS nonNumericPolicy('getSelection().setBaseAndExtent(document, 0, document, x) ') is 'any type allowed' 58 PASS nonNumericPolicy('getSelection().setBaseAndExtent(document, 0, document, x) ') is 'any type allowed'
59 PASS nonNumericPolicy('getSelection().collapse(document, x)') is 'any type allow ed' 59 PASS nonNumericPolicy('getSelection().collapse(document, x)') is 'any type allow ed'
60 PASS nonNumericPolicy('getSelection().extend(document, x)') is 'any type allowed ' 60 PASS nonNumericPolicy('getSelection().extend(document, x)') is 'any type allowed '
61 PASS nonNumericPolicy('getSelection().getRangeAt(x)') is 'any type allowed (but not omitted)' 61 PASS nonNumericPolicy('getSelection().getRangeAt(x)') is 'any type allowed (but not omitted)'
(...skipping 12 matching lines...) Expand all
74 PASS nonNumericPolicy('window.moveTo(x, 0)') is 'any type allowed' 74 PASS nonNumericPolicy('window.moveTo(x, 0)') is 'any type allowed'
75 PASS nonNumericPolicy('window.moveTo(0, x)') is 'any type allowed (but not omitt ed)' 75 PASS nonNumericPolicy('window.moveTo(0, x)') is 'any type allowed (but not omitt ed)'
76 PASS nonNumericPolicy('window.resizeBy(x, 0)') is 'any type allowed' 76 PASS nonNumericPolicy('window.resizeBy(x, 0)') is 'any type allowed'
77 PASS nonNumericPolicy('window.resizeBy(0, x)') is 'any type allowed (but not omi tted)' 77 PASS nonNumericPolicy('window.resizeBy(0, x)') is 'any type allowed (but not omi tted)'
78 PASS nonNumericPolicy('window.resizeTo(x, 0)') is 'any type allowed' 78 PASS nonNumericPolicy('window.resizeTo(x, 0)') is 'any type allowed'
79 PASS nonNumericPolicy('window.resizeTo(0, x)') is 'any type allowed (but not omi tted)' 79 PASS nonNumericPolicy('window.resizeTo(0, x)') is 'any type allowed (but not omi tted)'
80 PASS successfullyParsed is true 80 PASS successfullyParsed is true
81 81
82 TEST COMPLETE 82 TEST COMPLETE
83 83
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/script-tests/non-numeric-values-numeric-parameters.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698