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

Side by Side Diff: LayoutTests/svg/dom/SVGPathSegList-clear-and-initialize-expected.txt

Issue 16818023: DOMException toString is not correct (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 6 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 This is a test of the SVGPathSegList::appendItem() API. 1 This is a test of the SVGPathSegList::appendItem() API.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 6
7 Check initial 'pathSegList' value of path1 7 Check initial 'pathSegList' value of path1
8 PASS path1.pathSegList.numberOfItems is 3 8 PASS path1.pathSegList.numberOfItems is 3
9 PASS path1.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]" 9 PASS path1.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]"
10 PASS path1.pathSegList.getItem(0).x is 100 10 PASS path1.pathSegList.getItem(0).x is 100
(...skipping 25 matching lines...) Expand all
36 PASS path1.pathSegList.clear() is undefined. 36 PASS path1.pathSegList.clear() is undefined.
37 37
38 Verify that item0 is still alive, and can be modified 38 Verify that item0 is still alive, and can be modified
39 PASS item0.x is 100 39 PASS item0.x is 100
40 PASS item0.y is 100 40 PASS item0.y is 100
41 PASS item0.x += 50 is 150 41 PASS item0.x += 50 is 150
42 PASS item0.y += 50 is 150 42 PASS item0.y += 50 is 150
43 43
44 Check intermediate list state of path1 44 Check intermediate list state of path1
45 PASS path1.pathSegList.numberOfItems is 0 45 PASS path1.pathSegList.numberOfItems is 0
46 PASS path1.pathSegList.getItem(0) threw exception Error: IndexSizeError: DOM Exc eption 1. 46 PASS path1.pathSegList.getItem(0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
47 47
48 Check intermediate list state of path2 48 Check intermediate list state of path2
49 PASS path2.pathSegList.numberOfItems is 3 49 PASS path2.pathSegList.numberOfItems is 3
50 PASS path2.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]" 50 PASS path2.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]"
51 PASS path2.pathSegList.getItem(0).x is 50 51 PASS path2.pathSegList.getItem(0).x is 50
52 PASS path2.pathSegList.getItem(0).y is 50 52 PASS path2.pathSegList.getItem(0).y is 50
53 PASS path2.pathSegList.getItem(1).toString() is "[object SVGPathSegLinetoAbs]" 53 PASS path2.pathSegList.getItem(1).toString() is "[object SVGPathSegLinetoAbs]"
54 PASS path2.pathSegList.getItem(1).x is 0 54 PASS path2.pathSegList.getItem(1).x is 0
55 PASS path2.pathSegList.getItem(1).y is 100 55 PASS path2.pathSegList.getItem(1).y is 100
56 PASS path2.pathSegList.getItem(2).toString() is "[object SVGPathSegMovetoAbs]" 56 PASS path2.pathSegList.getItem(2).toString() is "[object SVGPathSegMovetoAbs]"
(...skipping 29 matching lines...) Expand all
86 86
87 Check final list state of path2 87 Check final list state of path2
88 PASS path2.pathSegList.numberOfItems is 1 88 PASS path2.pathSegList.numberOfItems is 1
89 PASS path2.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]" 89 PASS path2.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]"
90 PASS path2.pathSegList.getItem(0).x is 150 90 PASS path2.pathSegList.getItem(0).x is 150
91 PASS path2.pathSegList.getItem(0).y is 150 91 PASS path2.pathSegList.getItem(0).y is 150
92 PASS successfullyParsed is true 92 PASS successfullyParsed is true
93 93
94 TEST COMPLETE 94 TEST COMPLETE
95 95
OLDNEW
« no previous file with comments | « LayoutTests/svg/dom/SVGPaint-expected.txt ('k') | LayoutTests/svg/dom/SVGPointList-basics-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698