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

Side by Side Diff: LayoutTests/svg/dom/undefined-null-expected.txt

Issue 144463014: Add [StrictTypeChecking] to the SVGGeometryElement interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Drop/change TC; Simplify generated code. 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
« no previous file with comments | « LayoutTests/svg/dom/undefined-null.html ('k') | Source/bindings/scripts/code_generator_v8.pm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Check that |undefined| and |null| arguments do not cause crashes, but do throw e xceptions. 1 Check that |undefined| and |null| arguments do not cause crashes, but do throw e xceptions.
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 SVGGeometryElement 6 SVGGeometryElement
7 7
8 isPointInFill(SVGPoint point) 8 isPointInFill(SVGPoint point)
9 PASS circle.isPointInFill(point) did not throw exception. 9 PASS circle.isPointInFill(point) did not throw exception.
10 PASS circle.isPointInFill(undefined) threw exception TypeError: Failed to execut e 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint' ..
11 PASS circle.isPointInFill(null) threw exception TypeError: Failed to execute 'is PointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'..
10 12
11 isPointInStroke(SVGPoint point) 13 isPointInStroke(SVGPoint point)
12 PASS circle.isPointInStroke(point) did not throw exception. 14 PASS circle.isPointInStroke(point) did not throw exception.
15 PASS circle.isPointInStroke(undefined) threw exception TypeError: Failed to exec ute 'isPointInStroke' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPo int'..
16 PASS circle.isPointInStroke(null) threw exception TypeError: Failed to execute ' isPointInStroke' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'. .
13 17
14 18
15 SVGSVGElement 19 SVGSVGElement
16 20
17 getIntersectionList(SVGRect rect, SVGElement? referenceElement) 21 getIntersectionList(SVGRect rect, SVGElement? referenceElement)
18 PASS svg.getIntersectionList(rect, svg) did not throw exception. 22 PASS svg.getIntersectionList(rect, svg) did not throw exception.
23 PASS svg.getIntersectionList(undefined, svg) threw exception TypeError: Failed t o execute 'getIntersectionList' on 'SVGSVGElement': parameter 1 is not of type ' SVGRect'..
19 PASS svg.getIntersectionList(null, svg) threw exception TypeError: Failed to exe cute 'getIntersectionList' on 'SVGSVGElement': parameter 1 is not of type 'SVGRe ct'.. 24 PASS svg.getIntersectionList(null, svg) threw exception TypeError: Failed to exe cute 'getIntersectionList' on 'SVGSVGElement': parameter 1 is not of type 'SVGRe ct'..
20 PASS svg.getIntersectionList(rect, undefined) did not throw exception. 25 PASS svg.getIntersectionList(rect, undefined) did not throw exception.
21 PASS svg.getIntersectionList(rect, null) did not throw exception. 26 PASS svg.getIntersectionList(rect, null) did not throw exception.
22 27
23 getEnclosureList(SVGRect rect, SVGElement? referenceElement) 28 getEnclosureList(SVGRect rect, SVGElement? referenceElement)
24 PASS svg.getEnclosureList(rect, svg) did not throw exception. 29 PASS svg.getEnclosureList(rect, svg) did not throw exception.
30 PASS svg.getEnclosureList(undefined, svg) threw exception TypeError: Failed to e xecute 'getEnclosureList' on 'SVGSVGElement': parameter 1 is not of type 'SVGRec t'..
25 PASS svg.getEnclosureList(null, svg) threw exception TypeError: Failed to execut e 'getEnclosureList' on 'SVGSVGElement': parameter 1 is not of type 'SVGRect'.. 31 PASS svg.getEnclosureList(null, svg) threw exception TypeError: Failed to execut e 'getEnclosureList' on 'SVGSVGElement': parameter 1 is not of type 'SVGRect'..
26 PASS svg.getEnclosureList(rect, undefined) did not throw exception. 32 PASS svg.getEnclosureList(rect, undefined) did not throw exception.
27 PASS svg.getEnclosureList(rect, null) did not throw exception. 33 PASS svg.getEnclosureList(rect, null) did not throw exception.
28 34
29 checkIntersection(SVGElement element, SVGRect rect) 35 checkIntersection(SVGElement element, SVGRect rect)
30 PASS svg.checkIntersection(svg, rect) did not throw exception. 36 PASS svg.checkIntersection(svg, rect) did not throw exception.
37 PASS svg.checkIntersection(undefined, rect) threw exception TypeError: Failed to execute 'checkIntersection' on 'SVGSVGElement': parameter 1 is not of type 'SVG Element'..
31 PASS svg.checkIntersection(null, rect) threw exception TypeError: Failed to exec ute 'checkIntersection' on 'SVGSVGElement': parameter 1 is not of type 'SVGEleme nt'.. 38 PASS svg.checkIntersection(null, rect) threw exception TypeError: Failed to exec ute 'checkIntersection' on 'SVGSVGElement': parameter 1 is not of type 'SVGEleme nt'..
39 PASS svg.checkIntersection(svg, undefined) threw exception TypeError: Failed to execute 'checkIntersection' on 'SVGSVGElement': parameter 2 is not of type 'SVGR ect'..
32 PASS svg.checkIntersection(svg, null) threw exception TypeError: Failed to execu te 'checkIntersection' on 'SVGSVGElement': parameter 2 is not of type 'SVGRect'. . 40 PASS svg.checkIntersection(svg, null) threw exception TypeError: Failed to execu te 'checkIntersection' on 'SVGSVGElement': parameter 2 is not of type 'SVGRect'. .
33 41
34 checkEnclosure(SVGElement element, SVGRect rect) 42 checkEnclosure(SVGElement element, SVGRect rect)
35 PASS svg.checkEnclosure(svg, rect) did not throw exception. 43 PASS svg.checkEnclosure(svg, rect) did not throw exception.
44 PASS svg.checkEnclosure(undefined, rect) threw exception TypeError: Failed to ex ecute 'checkEnclosure' on 'SVGSVGElement': parameter 1 is not of type 'SVGElemen t'..
36 PASS svg.checkEnclosure(null, rect) threw exception TypeError: Failed to execute 'checkEnclosure' on 'SVGSVGElement': parameter 1 is not of type 'SVGElement'.. 45 PASS svg.checkEnclosure(null, rect) threw exception TypeError: Failed to execute 'checkEnclosure' on 'SVGSVGElement': parameter 1 is not of type 'SVGElement'..
46 PASS svg.checkEnclosure(svg, undefined) threw exception TypeError: Failed to exe cute 'checkEnclosure' on 'SVGSVGElement': parameter 2 is not of type 'SVGRect'..
37 PASS svg.checkEnclosure(svg, null) threw exception TypeError: Failed to execute 'checkEnclosure' on 'SVGSVGElement': parameter 2 is not of type 'SVGRect'.. 47 PASS svg.checkEnclosure(svg, null) threw exception TypeError: Failed to execute 'checkEnclosure' on 'SVGSVGElement': parameter 2 is not of type 'SVGRect'..
38 48
39 SVGTransform createSVGTransformFromMatrix([Default=Undefined] optional SVGMatrix matrix) 49 SVGTransform createSVGTransformFromMatrix([Default=Undefined] optional SVGMatrix matrix)
40 PASS svg.createSVGTransformFromMatrix(matrix) did not throw exception. 50 PASS svg.createSVGTransformFromMatrix(matrix) did not throw exception.
41 PASS svg.createSVGTransformFromMatrix(undefined) threw exception TypeError: Fail ed to execute 'createSVGTransformFromMatrix' on 'SVGSVGElement': parameter 1 is not of type 'SVGMatrix'.. 51 PASS svg.createSVGTransformFromMatrix(undefined) threw exception TypeError: Fail ed to execute 'createSVGTransformFromMatrix' on 'SVGSVGElement': parameter 1 is not of type 'SVGMatrix'..
42 PASS svg.createSVGTransformFromMatrix(null) threw exception TypeError: Failed to execute 'createSVGTransformFromMatrix' on 'SVGSVGElement': parameter 1 is not o f type 'SVGMatrix'.. 52 PASS svg.createSVGTransformFromMatrix(null) threw exception TypeError: Failed to execute 'createSVGTransformFromMatrix' on 'SVGSVGElement': parameter 1 is not o f type 'SVGMatrix'..
43 53
44 54
45 SVGTextContentElement 55 SVGTextContentElement
46 56
47 getCharNumAtPosition(SVGPoint point) 57 getCharNumAtPosition(SVGPoint point)
48 PASS text.getCharNumAtPosition(point) did not throw exception. 58 PASS text.getCharNumAtPosition(point) did not throw exception.
59 PASS text.getCharNumAtPosition(undefined) threw exception TypeError: Failed to e xecute 'getCharNumAtPosition' on 'SVGTextContentElement': parameter 1 is not of type 'SVGPoint'..
49 PASS text.getCharNumAtPosition(null) threw exception TypeError: Failed to execut e 'getCharNumAtPosition' on 'SVGTextContentElement': parameter 1 is not of type 'SVGPoint'.. 60 PASS text.getCharNumAtPosition(null) threw exception TypeError: Failed to execut e 'getCharNumAtPosition' on 'SVGTextContentElement': parameter 1 is not of type 'SVGPoint'..
50 PASS successfullyParsed is true 61 PASS successfullyParsed is true
51 62
52 TEST COMPLETE 63 TEST COMPLETE
53 64
OLDNEW
« no previous file with comments | « LayoutTests/svg/dom/undefined-null.html ('k') | Source/bindings/scripts/code_generator_v8.pm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698