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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/dom/path-parser-expected.txt

Issue 1413953002: Add unit test for SVG path parsing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Drop line-wrap. Created 5 years, 2 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
OLDNEW
(Empty)
1 CONSOLE ERROR: Error: Invalid value for <path> attribute d="M100,200 a3,4,5,2,1, 6,7"
2 CONSOLE ERROR: Error: Invalid value for <path> attribute d="M100,200 a3,4,5,1,2, 6,7"
3 CONSOLE ERROR: Error: Invalid value for <path> attribute d="\u000BM1,2"
4 CONSOLE ERROR: Error: Invalid value for <path> attribute d="xM1,2"
5 CONSOLE ERROR: Error: Invalid value for <path> attribute d="M1,2\u000B"
6 CONSOLE ERROR: Error: Invalid value for <path> attribute d="M1,2x"
7 CONSOLE ERROR: Error: Invalid value for <path> attribute d="M1,2 L40,0#90"
8 CONSOLE ERROR: Error: Invalid value for <path> attribute d="x"
9 CONSOLE ERROR: Error: Invalid value for <path> attribute d="L1,2"
10 This tests the SVG path parser by parsing and then re-serializing various paths.
11
12 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
13
14
15 PASS parsePath('M1,2') is 'M1,2'
16 PASS parsePath('m1,2') is 'm1,2'
17 PASS parsePath('M100,200 m3,4') is 'M100,200 m3,4'
18 PASS parsePath('M100,200 L3,4') is 'M100,200 L3,4'
19 PASS parsePath('M100,200 l3,4') is 'M100,200 l3,4'
20 PASS parsePath('M100,200 H3') is 'M100,200 H3'
21 PASS parsePath('M100,200 h3') is 'M100,200 h3'
22 PASS parsePath('M100,200 V3') is 'M100,200 V3'
23 PASS parsePath('M100,200 v3') is 'M100,200 v3'
24 PASS parsePath('M100,200 Z') is 'M100,200 Z'
25 PASS parsePath('M100,200 z') is 'M100,200 Z'
26 PASS parsePath('M100,200 C3,4,5,6,7,8') is 'M100,200 C3,4,5,6,7,8'
27 PASS parsePath('M100,200 c3,4,5,6,7,8') is 'M100,200 c3,4,5,6,7,8'
28 PASS parsePath('M100,200 S3,4,5,6') is 'M100,200 S3,4,5,6'
29 PASS parsePath('M100,200 s3,4,5,6') is 'M100,200 s3,4,5,6'
30 PASS parsePath('M100,200 Q3,4,5,6') is 'M100,200 Q3,4,5,6'
31 PASS parsePath('M100,200 q3,4,5,6') is 'M100,200 q3,4,5,6'
32 PASS parsePath('M100,200 T3,4') is 'M100,200 T3,4'
33 PASS parsePath('M100,200 t3,4') is 'M100,200 t3,4'
34 PASS parsePath('M100,200 A3,4,5,0,0,6,7') is 'M100,200 A3,4,5,0,0,6,7'
35 PASS parsePath('M100,200 A3,4,5,1,0,6,7') is 'M100,200 A3,4,5,1,0,6,7'
36 PASS parsePath('M100,200 A3,4,5,0,1,6,7') is 'M100,200 A3,4,5,0,1,6,7'
37 PASS parsePath('M100,200 A3,4,5,1,1,6,7') is 'M100,200 A3,4,5,1,1,6,7'
38 PASS parsePath('M100,200 a3,4,5,0,0,6,7') is 'M100,200 a3,4,5,0,0,6,7'
39 PASS parsePath('M100,200 a3,4,5,0,1,6,7') is 'M100,200 a3,4,5,0,1,6,7'
40 PASS parsePath('M100,200 a3,4,5,1,0,6,7') is 'M100,200 a3,4,5,1,0,6,7'
41 PASS parsePath('M100,200 a3,4,5,1,1,6,7') is 'M100,200 a3,4,5,1,1,6,7'
42 PASS parsePath('M100,200 a3,4,5,006,7') is 'M100,200 a3,4,5,0,0,6,7'
43 PASS parsePath('M100,200 a3,4,5,016,7') is 'M100,200 a3,4,5,0,1,6,7'
44 PASS parsePath('M100,200 a3,4,5,106,7') is 'M100,200 a3,4,5,1,0,6,7'
45 PASS parsePath('M100,200 a3,4,5,116,7') is 'M100,200 a3,4,5,1,1,6,7'
46 PASS parsePath('M100,200 a3,4,5,2,1,6,7') is 'M100,200'
47 PASS parsePath('M100,200 a3,4,5,1,2,6,7') is 'M100,200'
48 PASS parsePath('M100,200 a0,4,5,0,0,10,0 a4,0,5,0,0,0,10 a0,0,5,0,0,-10,0 z') is 'M100,200 a0,4,5,0,0,10,0 a4,0,5,0,0,0,10 a0,0,5,0,0,-10,0 Z'
49 PASS parsePath('M1,2,3,4') is 'M1,2 L3,4'
50 PASS parsePath('m100,200,3,4') is 'm100,200 l3,4'
51 PASS parsePath('M 100-200') is 'M100,-200'
52 PASS parsePath('M 0.6.5') is 'M0.6,0.5'
53 PASS parsePath(' M1,2') is 'M1,2'
54 PASS parsePath(' M1,2') is 'M1,2'
55 PASS parsePath('\tM1,2') is 'M1,2'
56 PASS parsePath('\nM1,2') is 'M1,2'
57 PASS parsePath('\rM1,2') is 'M1,2'
58 PASS parsePath('\vM1,2') is ''
59 PASS parsePath('xM1,2') is ''
60 PASS parsePath('M1,2 ') is 'M1,2'
61 PASS parsePath('M1,2\t') is 'M1,2'
62 PASS parsePath('M1,2\n') is 'M1,2'
63 PASS parsePath('M1,2\r') is 'M1,2'
64 PASS parsePath('M1,2\v') is 'M1,2'
65 PASS parsePath('M1,2x') is 'M1,2'
66 PASS parsePath('M1,2 L40,0#90') is 'M1,2 L40,0'
67 PASS parsePath('') is ''
68 PASS parsePath(' ') is ''
69 PASS parsePath('x') is ''
70 PASS parsePath('L1,2') is ''
71 PASS parsePath('M.1 .2 L.3 .4 .5 .6') is 'M0.1,0.2 L0.3,0.4 L0.5,0.6'
72 PASS successfullyParsed is true
73
74 TEST COMPLETE
75
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698