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

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

Issue 63883004: Make second argument to CSSStyleSheet.insertRule() optional again (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master Created 7 years, 1 month 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
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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // CSSRuleList 196 // CSSRuleList
197 197
198 shouldBe("nonNumericPolicy('createCSSRuleList().item(x)')", "'any type allowed ( but not omitted)'"); 198 shouldBe("nonNumericPolicy('createCSSRuleList().item(x)')", "'any type allowed ( but not omitted)'");
199 199
200 // CSSStyleDeclaration 200 // CSSStyleDeclaration
201 201
202 shouldBe("nonNumericPolicy('createCSSStyleDeclaration().item(x)')", "'any type a llowed'"); 202 shouldBe("nonNumericPolicy('createCSSStyleDeclaration().item(x)')", "'any type a llowed'");
203 203
204 // CSSStyleSheet 204 // CSSStyleSheet
205 205
206 shouldBe("nonNumericPolicy('createCSSStyleSheet().insertRule(ruleText, x)')", "' any type allowed (but not omitted)'"); 206 shouldBe("nonNumericPolicy('createCSSStyleSheet().insertRule(ruleText, x)')", "' any type allowed'");
207 shouldBe("nonNumericPolicy('createCSSStyleSheet().deleteRule(x)')", "'any type a llowed (but not omitted)'"); 207 shouldBe("nonNumericPolicy('createCSSStyleSheet().deleteRule(x)')", "'any type a llowed (but not omitted)'");
208 shouldBe("nonNumericPolicy('createCSSStyleSheet().addRule(selector, styleText, x )')", "'any type allowed'"); 208 shouldBe("nonNumericPolicy('createCSSStyleSheet().addRule(selector, styleText, x )')", "'any type allowed'");
209 shouldBe("nonNumericPolicy('createCSSStyleSheet().removeRule(x)')", "'any type a llowed'"); 209 shouldBe("nonNumericPolicy('createCSSStyleSheet().removeRule(x)')", "'any type a llowed'");
210 210
211 // CSSValueList 211 // CSSValueList
212 212
213 shouldBe("nonNumericPolicy('createCSSValueList().item(x)')", "'any type allowed (but not omitted)'"); 213 shouldBe("nonNumericPolicy('createCSSValueList().item(x)')", "'any type allowed (but not omitted)'");
214 214
215 // Document 215 // Document
216 216
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 ../../../../WebCore/svg/SVGSVGElement.idl: attribute float curre ntScale 635 ../../../../WebCore/svg/SVGSVGElement.idl: attribute float curre ntScale
636 636
637 ../../../../WebCore/svg/SVGMatrix.idl: attribute double a; 637 ../../../../WebCore/svg/SVGMatrix.idl: attribute double a;
638 ../../../../WebCore/svg/SVGMatrix.idl: attribute double b; 638 ../../../../WebCore/svg/SVGMatrix.idl: attribute double b;
639 ../../../../WebCore/svg/SVGMatrix.idl: attribute double c; 639 ../../../../WebCore/svg/SVGMatrix.idl: attribute double c;
640 ../../../../WebCore/svg/SVGMatrix.idl: attribute double d; 640 ../../../../WebCore/svg/SVGMatrix.idl: attribute double d;
641 ../../../../WebCore/svg/SVGMatrix.idl: attribute double e; 641 ../../../../WebCore/svg/SVGMatrix.idl: attribute double e;
642 ../../../../WebCore/svg/SVGMatrix.idl: attribute double f; 642 ../../../../WebCore/svg/SVGMatrix.idl: attribute double f;
643 643
644 */ 644 */
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/non-numeric-values-numeric-parameters-expected.txt ('k') | Source/core/css/CSSStyleSheet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698