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

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

Issue 416403013: Remove Element.scrollByLines() and Element.scrollByPages() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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'");
223 shouldBe("nonNumericPolicy('document.body.scrollByPages(x)')", "'any type allowe d'");
224 shouldBe("nonNumericPolicy('document.body.scrollLeft = x')", "'mixed'"); 222 shouldBe("nonNumericPolicy('document.body.scrollLeft = x')", "'mixed'");
225 shouldBe("nonNumericPolicy('document.body.scrollTop = x')", "'mixed'"); 223 shouldBe("nonNumericPolicy('document.body.scrollTop = x')", "'mixed'");
226 224
227 // History 225 // History
228 226
229 // Not tested: go. 227 // Not tested: go.
230 228
231 // HTMLCollection 229 // HTMLCollection
232 230
233 shouldBe("nonNumericPolicy('document.images.item(x)')", "'any type allowed'"); 231 shouldBe("nonNumericPolicy('document.images.item(x)')", "'any type allowed'");
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 ../../../../WebCore/svg/SVGSVGElement.idl: attribute float curre ntScale 633 ../../../../WebCore/svg/SVGSVGElement.idl: attribute float curre ntScale
636 634
637 ../../../../WebCore/svg/SVGMatrix.idl: attribute double a; 635 ../../../../WebCore/svg/SVGMatrix.idl: attribute double a;
638 ../../../../WebCore/svg/SVGMatrix.idl: attribute double b; 636 ../../../../WebCore/svg/SVGMatrix.idl: attribute double b;
639 ../../../../WebCore/svg/SVGMatrix.idl: attribute double c; 637 ../../../../WebCore/svg/SVGMatrix.idl: attribute double c;
640 ../../../../WebCore/svg/SVGMatrix.idl: attribute double d; 638 ../../../../WebCore/svg/SVGMatrix.idl: attribute double d;
641 ../../../../WebCore/svg/SVGMatrix.idl: attribute double e; 639 ../../../../WebCore/svg/SVGMatrix.idl: attribute double e;
642 ../../../../WebCore/svg/SVGMatrix.idl: attribute double f; 640 ../../../../WebCore/svg/SVGMatrix.idl: attribute double f;
643 641
644 */ 642 */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698