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

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

Issue 146003002: Bindings for CSSOM View smooth scroll API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address review comments Created 6 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 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 214
215 // Document 215 // Document
216 216
217 shouldBe("nonNumericPolicy('document.elementFromPoint(x, 0)')", "'any type allow ed'"); 217 shouldBe("nonNumericPolicy('document.elementFromPoint(x, 0)')", "'any type allow ed'");
218 shouldBe("nonNumericPolicy('document.elementFromPoint(0, x)')", "'any type allow ed'"); 218 shouldBe("nonNumericPolicy('document.elementFromPoint(0, x)')", "'any type allow ed'");
219 219
220 // Element 220 // Element
221 221
222 shouldBe("nonNumericPolicy('document.body.scrollByLines(x)')", "'any type allowe d'"); 222 shouldBe("nonNumericPolicy('document.body.scrollByLines(x)')", "'any type allowe d'");
223 shouldBe("nonNumericPolicy('document.body.scrollByPages(x)')", "'any type allowe d'"); 223 shouldBe("nonNumericPolicy('document.body.scrollByPages(x)')", "'any type allowe d'");
224 shouldBe("nonNumericPolicy('document.body.scrollLeft = x')", "'any type allowed' "); 224 shouldBe("nonNumericPolicy('document.body.scrollLeft = x')", "'mixed'");
225 shouldBe("nonNumericPolicy('document.body.scrollTop = x')", "'any type allowed'" ); 225 shouldBe("nonNumericPolicy('document.body.scrollTop = x')", "'mixed'");
226 226
227 // History 227 // History
228 228
229 // Not tested: go. 229 // Not tested: go.
230 230
231 // HTMLCollection 231 // HTMLCollection
232 232
233 shouldBe("nonNumericPolicy('document.images.item(x)')", "'any type allowed'"); 233 shouldBe("nonNumericPolicy('document.images.item(x)')", "'any type allowed'");
234 234
235 // HTMLInputElement 235 // HTMLInputElement
(...skipping 399 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/bindings/bindings.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698