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

Side by Side Diff: LayoutTests/fast/dom/script-tests/non-numeric-values-numeric-parameters.js

Issue 796573003: Make CSSStyleDeclaration function arguments non-optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update test Created 6 years 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 description( 1 description(
2 'This tests the behavior of non-numeric values in contexts where the DOM has a n umeric parameter.' 2 'This tests the behavior of non-numeric values in contexts where the DOM has a n umeric parameter.'
3 ); 3 );
4 4
5 function nonNumericPolicy(template) 5 function nonNumericPolicy(template)
6 { 6 {
7 var x = 0; 7 var x = 0;
8 try { 8 try {
9 eval(template); 9 eval(template);
10 } catch (e) { 10 } catch (e) {
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 186
187 shouldBe("nonNumericPolicy('createCSSMediaRule().insertRule(ruleText, x)')", "'a ny type allowed (but not omitted)'"); 187 shouldBe("nonNumericPolicy('createCSSMediaRule().insertRule(ruleText, x)')", "'a ny type allowed (but not omitted)'");
188 shouldBe("nonNumericPolicy('createCSSMediaRule().deleteRule(x)')", "'any type al lowed (but not omitted)'"); 188 shouldBe("nonNumericPolicy('createCSSMediaRule().deleteRule(x)')", "'any type al lowed (but not omitted)'");
189 189
190 // CSSRuleList 190 // CSSRuleList
191 191
192 shouldBe("nonNumericPolicy('createCSSRuleList().item(x)')", "'any type allowed ( but not omitted)'"); 192 shouldBe("nonNumericPolicy('createCSSRuleList().item(x)')", "'any type allowed ( but not omitted)'");
193 193
194 // CSSStyleDeclaration 194 // CSSStyleDeclaration
195 195
196 shouldBe("nonNumericPolicy('createCSSStyleDeclaration().item(x)')", "'any type a llowed'"); 196 shouldBe("nonNumericPolicy('createCSSStyleDeclaration().item(x)')", "'any type a llowed (but not omitted)'");
197 197
198 // CSSStyleSheet 198 // CSSStyleSheet
199 199
200 shouldBe("nonNumericPolicy('createCSSStyleSheet().insertRule(ruleText, x)')", "' any type allowed'"); 200 shouldBe("nonNumericPolicy('createCSSStyleSheet().insertRule(ruleText, x)')", "' any type allowed'");
201 shouldBe("nonNumericPolicy('createCSSStyleSheet().deleteRule(x)')", "'any type a llowed (but not omitted)'"); 201 shouldBe("nonNumericPolicy('createCSSStyleSheet().deleteRule(x)')", "'any type a llowed (but not omitted)'");
202 shouldBe("nonNumericPolicy('createCSSStyleSheet().addRule(selector, styleText, x )')", "'any type allowed'"); 202 shouldBe("nonNumericPolicy('createCSSStyleSheet().addRule(selector, styleText, x )')", "'any type allowed'");
203 shouldBe("nonNumericPolicy('createCSSStyleSheet().removeRule(x)')", "'any type a llowed'"); 203 shouldBe("nonNumericPolicy('createCSSStyleSheet().removeRule(x)')", "'any type a llowed'");
204 204
205 // Document 205 // Document
206 206
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 ../../../../WebCore/svg/SVGSVGElement.idl: attribute float curre ntScale 623 ../../../../WebCore/svg/SVGSVGElement.idl: attribute float curre ntScale
624 624
625 ../../../../WebCore/svg/SVGMatrix.idl: attribute double a; 625 ../../../../WebCore/svg/SVGMatrix.idl: attribute double a;
626 ../../../../WebCore/svg/SVGMatrix.idl: attribute double b; 626 ../../../../WebCore/svg/SVGMatrix.idl: attribute double b;
627 ../../../../WebCore/svg/SVGMatrix.idl: attribute double c; 627 ../../../../WebCore/svg/SVGMatrix.idl: attribute double c;
628 ../../../../WebCore/svg/SVGMatrix.idl: attribute double d; 628 ../../../../WebCore/svg/SVGMatrix.idl: attribute double d;
629 ../../../../WebCore/svg/SVGMatrix.idl: attribute double e; 629 ../../../../WebCore/svg/SVGMatrix.idl: attribute double e;
630 ../../../../WebCore/svg/SVGMatrix.idl: attribute double f; 630 ../../../../WebCore/svg/SVGMatrix.idl: attribute double f;
631 631
632 */ 632 */
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/non-numeric-values-numeric-parameters-expected.txt ('k') | Source/core/css/CSSStyleDeclaration.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698