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

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

Issue 2163213007: Deprecate currentView, useCurrentView properties of SVGSVGElement and SVGViewSpec interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 This test checks the SVGViewSpec API
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6
7 Check initial SVGSVGElement.currentView values on a SVGSVGElement
8 PASS currentView.transform.numberOfItems is 0
9 PASS currentView.viewTarget is null
10 PASS currentView.zoomAndPan is SVGViewElement.SVG_ZOOMANDPAN_MAGNIFY
11 PASS currentView.viewBox.baseVal.x is 0
12 PASS currentView.viewBox.baseVal.y is 0
13 PASS currentView.viewBox.baseVal.width is 0
14 PASS currentView.viewBox.baseVal.height is 0
15 PASS currentView.preserveAspectRatio.baseVal.align is SVGPreserveAspectRatio.SVG _PRESERVEASPECTRATIO_XMIDYMID
16 PASS currentView.preserveAspectRatio.baseVal.meetOrSlice is SVGPreserveAspectRat io.SVG_MEETORSLICE_MEET
17 PASS currentView.viewBoxString is "0 0 0 0"
18 PASS currentView.preserveAspectRatioString is "xMidYMid meet"
19 PASS currentView.transformString is ""
20 PASS currentView.viewTargetString is ""
21 PASS currentView.zoomAndPan is SVGViewElement.SVG_ZOOMANDPAN_MAGNIFY
22
23 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
24 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..
25 PASS currentView.zoomAndPan is SVGViewElement.SVG_ZOOMANDPAN_MAGNIFY
26
27 Try changing viewBox - this has no affect on the SVGSVGElement the viewSpec belo ngs to - it exposed all its properties as read-only
28 PASS currentView.viewBox.baseVal.x = 10 threw exception NoModificationAllowedErr or: Failed to set the 'x' property on 'SVGRect': The attribute is read-only..
29 PASS currentView.viewBox.baseVal.x is 0
30 PASS currentView.viewBox.baseVal.y = 20 threw exception NoModificationAllowedErr or: Failed to set the 'y' property on 'SVGRect': The attribute is read-only..
31 PASS currentView.viewBox.baseVal.y is 0
32 PASS currentView.viewBox.baseVal.width = 50 threw exception NoModificationAllowe dError: Failed to set the 'width' property on 'SVGRect': The attribute is read-o nly..
33 PASS currentView.viewBox.baseVal.width is 0
34 PASS currentView.viewBox.baseVal.height = 100 threw exception NoModificationAllo wedError: Failed to set the 'height' property on 'SVGRect': The attribute is rea d-only..
35 PASS currentView.viewBox.baseVal.height is 0
36 PASS currentView.viewBoxString is "0 0 0 0"
37
38 Try changing viewBoxString
39 PASS currentView.viewBoxString = '1 2 3 4' is "1 2 3 4"
40 PASS currentView.viewBoxString is "0 0 0 0"
41
42 Try changing preserveAspectRatio
43 PASS currentView.preserveAspectRatio.baseVal.align = SVGPreserveAspectRatio.SVG_ PRESERVEASPECTRATIO_XMINYMIN threw exception NoModificationAllowedError: Failed to set the 'align' property on 'SVGPreserveAspectRatio': The attribute is read-o nly..
44 PASS currentView.preserveAspectRatio.baseVal.align is SVGPreserveAspectRatio.SVG _PRESERVEASPECTRATIO_XMIDYMID
45 PASS currentView.preserveAspectRatio.baseVal.meetOrSlice = SVGPreserveAspectRati o.SVG_MEETORSLICE_SLICE threw exception NoModificationAllowedError: Failed to se t the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The attribute is read- only..
46 PASS currentView.preserveAspectRatio.baseVal.meetOrSlice is SVGPreserveAspectRat io.SVG_MEETORSLICE_MEET
47
48 Try changing preserveAspectRatioString
49 PASS currentView.preserveAspectRatioString = 'xMinYMin slice' is "xMinYMin slice "
50 PASS currentView.preserveAspectRatioString is "xMidYMid meet"
51
52 Try changing transformString
53 PASS currentView.transformString = 'rotate(90)' is "rotate(90)"
54 PASS currentView.transformString is ""
55
56 Try changing viewTarget
57 PASS currentView.viewTarget = svgElement is svgElement
58 PASS currentView.viewTarget is null
59
60 Try changing viewTargetString
61 PASS currentView.viewTargetString = '#test' is "#test"
62 PASS currentView.viewTargetString is ""
63
64 Try changing transform
65 PASS currentView.transform.clear() threw exception NoModificationAllowedError: F ailed to execute 'clear' on 'SVGTransformList': The object is read-only..
66 PASS currentView.transform.numberOfItems is 0
67 PASS successfullyParsed is true
68
69 TEST COMPLETE
70
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698