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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/dom/SVGViewSpec-defaults-expected.txt

Issue 2485113002: Remove currentView, useCurrentView properties of SVGSVGElement and SVGViewSpec interface (Closed)
Patch Set: rebased Created 4 years, 1 month 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 WARNING: line 4: SVGSVGElement.currentView is deprecated and will be rem oved in M56, around January 2017. See https://www.chromestatus.com/features/4511 711998509056 for more details.
2 This test checks the SVGViewSpec API
3
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
5
6
7
8 Check initial SVGSVGElement.currentView values on a SVGSVGElement
9 PASS currentView.transform.numberOfItems is 0
10 PASS currentView.viewTarget is null
11 PASS currentView.zoomAndPan is SVGViewElement.SVG_ZOOMANDPAN_MAGNIFY
12 PASS currentView.viewBox.baseVal.x is 0
13 PASS currentView.viewBox.baseVal.y is 0
14 PASS currentView.viewBox.baseVal.width is 0
15 PASS currentView.viewBox.baseVal.height is 0
16 PASS currentView.preserveAspectRatio.baseVal.align is SVGPreserveAspectRatio.SVG _PRESERVEASPECTRATIO_XMIDYMID
17 PASS currentView.preserveAspectRatio.baseVal.meetOrSlice is SVGPreserveAspectRat io.SVG_MEETORSLICE_MEET
18 PASS currentView.viewBoxString is "0 0 0 0"
19 PASS currentView.preserveAspectRatioString is "xMidYMid meet"
20 PASS currentView.transformString is ""
21 PASS currentView.viewTargetString is ""
22 PASS currentView.zoomAndPan is SVGViewElement.SVG_ZOOMANDPAN_MAGNIFY
23
24 Try changing zoomAndPan - none of these will work, as SVGViewSpec is fully reado nly - even the animated properties it inherits from supplmental classes like SVG ViewElement/SVGFitToViewBox
25 PASS currentView.zoomAndPan = SVGViewElement.SVG_ZOOMANDPAN_DISABLE threw except ion NoModificationAllowedError: Failed to set the 'zoomAndPan' property on 'SVGV iewSpec': This object is read-only..
26 PASS currentView.zoomAndPan is SVGViewElement.SVG_ZOOMANDPAN_MAGNIFY
27
28 Try changing viewBox - this has no affect on the SVGSVGElement the viewSpec belo ngs to - it exposed all its properties as read-only
29 PASS currentView.viewBox.baseVal.x = 10 threw exception NoModificationAllowedErr or: Failed to set the 'x' property on 'SVGRect': This object is read-only..
30 PASS currentView.viewBox.baseVal.x is 0
31 PASS currentView.viewBox.baseVal.y = 20 threw exception NoModificationAllowedErr or: Failed to set the 'y' property on 'SVGRect': This object is read-only..
32 PASS currentView.viewBox.baseVal.y is 0
33 PASS currentView.viewBox.baseVal.width = 50 threw exception NoModificationAllowe dError: Failed to set the 'width' property on 'SVGRect': This object is read-onl y..
34 PASS currentView.viewBox.baseVal.width is 0
35 PASS currentView.viewBox.baseVal.height = 100 threw exception NoModificationAllo wedError: Failed to set the 'height' property on 'SVGRect': This object is read- only..
36 PASS currentView.viewBox.baseVal.height is 0
37 PASS currentView.viewBoxString is "0 0 0 0"
38
39 Try changing viewBoxString
40 PASS currentView.viewBoxString = '1 2 3 4' is "1 2 3 4"
41 PASS currentView.viewBoxString is "0 0 0 0"
42
43 Try changing preserveAspectRatio
44 PASS currentView.preserveAspectRatio.baseVal.align = SVGPreserveAspectRatio.SVG_ PRESERVEASPECTRATIO_XMINYMIN threw exception NoModificationAllowedError: Failed to set the 'align' property on 'SVGPreserveAspectRatio': This object is read-onl y..
45 PASS currentView.preserveAspectRatio.baseVal.align is SVGPreserveAspectRatio.SVG _PRESERVEASPECTRATIO_XMIDYMID
46 PASS currentView.preserveAspectRatio.baseVal.meetOrSlice = SVGPreserveAspectRati o.SVG_MEETORSLICE_SLICE threw exception NoModificationAllowedError: Failed to se t the 'meetOrSlice' property on 'SVGPreserveAspectRatio': This object is read-on ly..
47 PASS currentView.preserveAspectRatio.baseVal.meetOrSlice is SVGPreserveAspectRat io.SVG_MEETORSLICE_MEET
48
49 Try changing preserveAspectRatioString
50 PASS currentView.preserveAspectRatioString = 'xMinYMin slice' is "xMinYMin slice "
51 PASS currentView.preserveAspectRatioString is "xMidYMid meet"
52
53 Try changing transformString
54 PASS currentView.transformString = 'rotate(90)' is "rotate(90)"
55 PASS currentView.transformString is ""
56
57 Try changing viewTarget
58 PASS currentView.viewTarget = svgElement is svgElement
59 PASS currentView.viewTarget is null
60
61 Try changing viewTargetString
62 PASS currentView.viewTargetString = '#test' is "#test"
63 PASS currentView.viewTargetString is ""
64
65 Try changing transform
66 PASS currentView.transform.clear() threw exception NoModificationAllowedError: F ailed to execute 'clear' on 'SVGTransformList': This object is read-only..
67 PASS currentView.transform.numberOfItems is 0
68 PASS successfullyParsed is true
69
70 TEST COMPLETE
71
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698