From: zimmermann@webkit.org Date: Sat, 28 May 2011 06:52:04 +0000 (+0000) Subject: 2011-05-27 Nikolas Zimmermann X-Git-Tag: 070512121124~31343 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f48ff9c8693ca98ede12af9caca7c848de7a4da3;p=profile%2Fivi%2Fwebkit-efl.git 2011-05-27 Nikolas Zimmermann Not reviewed, this just adds a new test. WebKit fails WICD SVG background image tests https://bugs.webkit.org/show_bug.cgi?id=16481 Add two WICD SVG background image tests, which pass just fine. * svg/wicd/resources/test-scalable-background-image1.css: Added. (html): (body): (p): * svg/wicd/resources/test-scalable-background-image1.svg: Added. * svg/wicd/resources/test-scalable-background-image2.css: Added. (html): * svg/wicd/resources/test-scalable-background-image2.svg: Added. * svg/wicd/test-scalable-background-image1.xhtml: Added. * svg/wicd/test-scalable-background-image2.xhtml: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87605 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog index d6aee87..a06f98f 100644 --- a/LayoutTests/ChangeLog +++ b/LayoutTests/ChangeLog @@ -1,3 +1,23 @@ +2011-05-27 Nikolas Zimmermann + + Not reviewed, this just adds a new test. + + WebKit fails WICD SVG background image tests + https://bugs.webkit.org/show_bug.cgi?id=16481 + + Add two WICD SVG background image tests, which pass just fine. + + * svg/wicd/resources/test-scalable-background-image1.css: Added. + (html): + (body): + (p): + * svg/wicd/resources/test-scalable-background-image1.svg: Added. + * svg/wicd/resources/test-scalable-background-image2.css: Added. + (html): + * svg/wicd/resources/test-scalable-background-image2.svg: Added. + * svg/wicd/test-scalable-background-image1.xhtml: Added. + * svg/wicd/test-scalable-background-image2.xhtml: Added. + 2011-05-27 Annie Sullivan Reviewed by Ryosuke Niwa. diff --git a/LayoutTests/platform/mac/svg/wicd/test-scalable-background-image1-expected.png b/LayoutTests/platform/mac/svg/wicd/test-scalable-background-image1-expected.png new file mode 100644 index 0000000..5f35dbb Binary files /dev/null and b/LayoutTests/platform/mac/svg/wicd/test-scalable-background-image1-expected.png differ diff --git a/LayoutTests/platform/mac/svg/wicd/test-scalable-background-image1-expected.txt b/LayoutTests/platform/mac/svg/wicd/test-scalable-background-image1-expected.txt new file mode 100644 index 0000000..8a5d49e --- /dev/null +++ b/LayoutTests/platform/mac/svg/wicd/test-scalable-background-image1-expected.txt @@ -0,0 +1,25 @@ +layer at (0,0) size 820x585 + RenderView at (0,0) size 800x585 +layer at (0,0) size 800x312 + RenderBlock {html} at (0,0) size 800x312 + RenderBody {body} at (48,8) size 772x296 + RenderBlock {h1} at (10,40) size 691x31 + RenderText {#text} at (0,0) size 315x30 + text run at (0,0) width 315: "scalable CSS background" + RenderBlock {h4} at (10,71) size 752x16 + RenderText {#text} at (0,0) size 125x16 + text run at (0,0) width 125: "WICD Core 1.0 #11" + RenderBlock {p} at (10,106) size 711x36 + RenderText {#text} at (10,10) size 494x16 + text run at (10,10) width 494: "This text paragraph, as well as all following, must have a SVG background image." + RenderBlock {p} at (10,147) size 711x36 + RenderText {#text} at (10,10) size 669x16 + text run at (10,10) width 669: "This background image (grey color-gradient and rounded corners) must always exactly fit the text paragraph." + RenderBlock {p} at (10,188) size 711x52 + RenderText {#text} at (10,10) size 675x32 + text run at (10,10) width 675: "This test has failed, if you don't see any graphics on the background. (your user agent does not support SVG as" + text run at (10,26) width 122: "background image)." + RenderBlock {p} at (10,245) size 711x36 + RenderInline {a} at (0,0) size 29x16 [color=#000066] + RenderText {#text} at (10,10) size 29x16 + text run at (10,10) width 29: "Back" diff --git a/LayoutTests/platform/mac/svg/wicd/test-scalable-background-image2-expected.png b/LayoutTests/platform/mac/svg/wicd/test-scalable-background-image2-expected.png new file mode 100644 index 0000000..f6e5b46 Binary files /dev/null and b/LayoutTests/platform/mac/svg/wicd/test-scalable-background-image2-expected.png differ diff --git a/LayoutTests/platform/mac/svg/wicd/test-scalable-background-image2-expected.txt b/LayoutTests/platform/mac/svg/wicd/test-scalable-background-image2-expected.txt new file mode 100644 index 0000000..5feeeef --- /dev/null +++ b/LayoutTests/platform/mac/svg/wicd/test-scalable-background-image2-expected.txt @@ -0,0 +1,24 @@ +layer at (0,0) size 800x600 + RenderView at (0,0) size 800x600 +layer at (0,0) size 800x600 + RenderBlock {html} at (0,0) size 800x600 + RenderBody {body} at (48,30) size 752x156 + RenderBlock {h1} at (0,0) size 691x31 + RenderText {#text} at (0,0) size 383x30 + text run at (0,0) width 383: "scalable fullscreen background" + RenderBlock {h4} at (0,31) size 752x16 + RenderText {#text} at (0,0) size 125x16 + text run at (0,0) width 125: "WICD Core 1.0 #12" + RenderBlock {p} at (0,66) size 691x32 + RenderText {#text} at (0,0) size 676x32 + text run at (0,0) width 614: "This text is XHTML main layer content, which must overlay a lightblue SVG-background image with " + text run at (614,0) width 62: "text ('SVG" + text run at (0,16) width 618: "background image'). The SVG background image must cover the complete XHTML-background area." + RenderBlock {p} at (0,103) size 691x32 + RenderText {#text} at (0,0) size 675x32 + text run at (0,0) width 675: "This test has failed, if you don't see any graphics on the background. (your user agent does not support SVG as" + text run at (0,16) width 122: "background image)." + RenderBlock {p} at (0,140) size 691x16 + RenderInline {a} at (0,0) size 29x16 [color=#000066] + RenderText {#text} at (0,0) size 29x16 + text run at (0,0) width 29: "Back" diff --git a/LayoutTests/svg/wicd/resources/test-scalable-background-image1.css b/LayoutTests/svg/wicd/resources/test-scalable-background-image1.css new file mode 100644 index 0000000..4d97230 --- /dev/null +++ b/LayoutTests/svg/wicd/resources/test-scalable-background-image1.css @@ -0,0 +1,10 @@ +html{ + +} +body{ + padding:10px; +} +p{ + padding:10px; + background:url('test-scalable-background-image1.svg'); +} diff --git a/LayoutTests/svg/wicd/resources/test-scalable-background-image1.svg b/LayoutTests/svg/wicd/resources/test-scalable-background-image1.svg new file mode 100644 index 0000000..9b216d0 --- /dev/null +++ b/LayoutTests/svg/wicd/resources/test-scalable-background-image1.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/LayoutTests/svg/wicd/resources/test-scalable-background-image2.css b/LayoutTests/svg/wicd/resources/test-scalable-background-image2.css new file mode 100644 index 0000000..1eb2f77 --- /dev/null +++ b/LayoutTests/svg/wicd/resources/test-scalable-background-image2.css @@ -0,0 +1,4 @@ +html{ + height:100%; + background:url('test-scalable-background-image2.svg') no-repeat fixed center center; +} diff --git a/LayoutTests/svg/wicd/resources/test-scalable-background-image2.svg b/LayoutTests/svg/wicd/resources/test-scalable-background-image2.svg new file mode 100644 index 0000000..840e5b2 --- /dev/null +++ b/LayoutTests/svg/wicd/resources/test-scalable-background-image2.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + SVG + back- + ground + image + + + + + \ No newline at end of file diff --git a/LayoutTests/svg/wicd/test-scalable-background-image1.xhtml b/LayoutTests/svg/wicd/test-scalable-background-image1.xhtml new file mode 100644 index 0000000..ada561d --- /dev/null +++ b/LayoutTests/svg/wicd/test-scalable-background-image1.xhtml @@ -0,0 +1,23 @@ + + + + + WICD Core 1.0 #11 - scalable CSS background + + + + +

scalable CSS background

+

WICD Core 1.0 #11

+

+ This text paragraph, as well as all following, must have a SVG background image. +

+

+ This background image (grey color-gradient and rounded corners) must always exactly fit the text paragraph. +

+

+ This test has failed, if you don't see any graphics on the background. (your user agent does not support SVG as background image). +

+

Back

+ + diff --git a/LayoutTests/svg/wicd/test-scalable-background-image2.xhtml b/LayoutTests/svg/wicd/test-scalable-background-image2.xhtml new file mode 100644 index 0000000..bc30dbf --- /dev/null +++ b/LayoutTests/svg/wicd/test-scalable-background-image2.xhtml @@ -0,0 +1,21 @@ + + + + + WICD Core 1.0 #12 - scalable fullscreen background + + + + +

scalable fullscreen background

+

WICD Core 1.0 #12

+

+ This text is XHTML main layer content, which must overlay a lightblue SVG-background image with + text ('SVG background image'). The SVG background image must cover the complete XHTML-background area. +

+

+ This test has failed, if you don't see any graphics on the background. (your user agent does not support SVG as background image). +

+

Back

+ +