diff --git a/engine/src/flutter/tests/clipping/background-opaque-clipped-gradients-expected.txt b/engine/src/flutter/tests/clipping/background-opaque-clipped-gradients-expected.txt index 0f6aeeba80..b127eb9902 100644 --- a/engine/src/flutter/tests/clipping/background-opaque-clipped-gradients-expected.txt +++ b/engine/src/flutter/tests/clipping/background-opaque-clipped-gradients-expected.txt @@ -1,10 +1,9 @@ layer at (0,0) size 800x600 RenderView {#document} at (0,0) size 800x600 -layer at (0,0) size 800x238 - RenderBlock {sky} at (0,0) size 800x238 - RenderParagraph (anonymous) at (0,0) size 800x38 - RenderText {#text} at (0,0) size 778x38 - text run at (0,0) width 778: "Test passes if the image below shows nested green, blue and yellow squares with a dotted black" - text run at (0,19) width 59: "border." - RenderBlock {div} at (0,38) size 200x200 [border: (25px dotted #000000)] + RenderBlock {sky} at (0,0) size 800x238 + RenderParagraph (anonymous) at (0,0) size 800x38 + RenderText {#text} at (0,0) size 778x38 + text run at (0,0) width 778: "Test passes if the image below shows nested green, blue and yellow squares with a dotted black" + text run at (0,19) width 59: "border." + RenderBlock {div} at (0,38) size 200x200 [border: (25px dotted #000000)] diff --git a/engine/src/flutter/tests/clipping/canvas-rounded-corners-expected.txt b/engine/src/flutter/tests/clipping/canvas-rounded-corners-expected.txt index 2300d1950c..01d6d2f847 100644 --- a/engine/src/flutter/tests/clipping/canvas-rounded-corners-expected.txt +++ b/engine/src/flutter/tests/clipping/canvas-rounded-corners-expected.txt @@ -1,24 +1,23 @@ layer at (0,0) size 800x600 RenderView {#document} at (0,0) size 800x600 -layer at (0,0) size 800x353 - RenderBlock {sky} at (0,0) size 800x353 - RenderBlock {h3} at (0,0) size 800x19 - RenderParagraph (anonymous) at (0,0) size 800x19 - RenderText {#text} at (0,0) size 92x19 - text run at (0,0) width 92: "It passes if:" - RenderBlock {ul} at (0,19) size 800x57 - RenderBlock {li} at (0,0) size 800x19 + RenderBlock {sky} at (0,0) size 800x353 + RenderBlock {h3} at (0,0) size 800x19 RenderParagraph (anonymous) at (0,0) size 800x19 - RenderText {#text} at (0,0) size 511x19 - text run at (0,0) width 511: "the canvas content has rounded corners (top-left and top-right)" - RenderBlock {li} at (0,19) size 800x19 - RenderParagraph (anonymous) at (0,0) size 800x19 - RenderText {#text} at (0,0) size 457x19 - text run at (0,0) width 457: "the 10px red border is visible around the canvas content" - RenderBlock {li} at (0,38) size 800x19 - RenderParagraph (anonymous) at (0,0) size 800x19 - RenderText {#text} at (0,0) size 200x19 - text run at (0,0) width 200: "gray border is not visible" + RenderText {#text} at (0,0) size 92x19 + text run at (0,0) width 92: "It passes if:" + RenderBlock {ul} at (0,19) size 800x57 + RenderBlock {li} at (0,0) size 800x19 + RenderParagraph (anonymous) at (0,0) size 800x19 + RenderText {#text} at (0,0) size 511x19 + text run at (0,0) width 511: "the canvas content has rounded corners (top-left and top-right)" + RenderBlock {li} at (0,19) size 800x19 + RenderParagraph (anonymous) at (0,0) size 800x19 + RenderText {#text} at (0,0) size 457x19 + text run at (0,0) width 457: "the 10px red border is visible around the canvas content" + RenderBlock {li} at (0,38) size 800x19 + RenderParagraph (anonymous) at (0,0) size 800x19 + RenderText {#text} at (0,0) size 200x19 + text run at (0,0) width 200: "gray border is not visible" layer at (0,76) size 277x277 RenderHTMLCanvas {canvas} at (0,76) size 277x277 [bgcolor=#808080] [border: (10px solid #FF0000)] diff --git a/engine/src/flutter/tests/layout/continuations-expected.txt b/engine/src/flutter/tests/layout/continuations-expected.txt index 34f1562ab3..2cac6bbe3e 100644 --- a/engine/src/flutter/tests/layout/continuations-expected.txt +++ b/engine/src/flutter/tests/layout/continuations-expected.txt @@ -1,13 +1,12 @@ layer at (0,0) size 800x600 RenderView {#document} at (0,0) size 800x600 -layer at (0,0) size 800x19 - RenderBlock {sky} at (0,0) size 800x19 - RenderBlock {div} at (0,0) size 800x19 - RenderParagraph {span} at (0,0) size 800x19 - RenderBlock (inline-block) {div} at (0,0) size 25.22x19 - RenderParagraph (anonymous) at (0,0) size 25.22x19 - RenderText {#text} at (0,0) size 26x19 - text run at (0,0) width 26: "foo" - RenderText {#text} at (25,0) size 27x19 - text run at (25,0) width 27: "bar" + RenderBlock {sky} at (0,0) size 800x19 + RenderBlock {div} at (0,0) size 800x19 + RenderParagraph {span} at (0,0) size 800x19 + RenderBlock (inline-block) {div} at (0,0) size 25.22x19 + RenderParagraph (anonymous) at (0,0) size 25.22x19 + RenderText {#text} at (0,0) size 26x19 + text run at (0,0) width 26: "foo" + RenderText {#text} at (25,0) size 27x19 + text run at (25,0) width 27: "bar" diff --git a/engine/src/flutter/tests/layout/ellipsis-expected.txt b/engine/src/flutter/tests/layout/ellipsis-expected.txt index 05d448345c..49d181b8a0 100644 --- a/engine/src/flutter/tests/layout/ellipsis-expected.txt +++ b/engine/src/flutter/tests/layout/ellipsis-expected.txt @@ -1,7 +1,6 @@ layer at (0,0) size 800x600 RenderView {#document} at (0,0) size 800x600 -layer at (0,0) size 800x94 - RenderBlock {sky} at (0,0) size 800x94 + RenderBlock {sky} at (0,0) size 800x94 layer at (0,0) size 56x69 clip at (3,3) size 50x63 RenderBlock {div} at (0,0) size 56x69 [border: (3px solid #0000FF)] RenderParagraph (anonymous) at (3,3) size 50x19 diff --git a/engine/src/flutter/tests/layout/fixed-width-expected.txt b/engine/src/flutter/tests/layout/fixed-width-expected.txt index 42df054221..b855b90467 100644 --- a/engine/src/flutter/tests/layout/fixed-width-expected.txt +++ b/engine/src/flutter/tests/layout/fixed-width-expected.txt @@ -1,6 +1,5 @@ layer at (0,0) size 800x600 RenderView {#document} at (0,0) size 800x600 -layer at (0,0) size 800x50 - RenderBlock {sky} at (0,0) size 800x50 - RenderBlock {div} at (0,0) size 50x50 [bgcolor=#FFC0CB] + RenderBlock {sky} at (0,0) size 800x50 + RenderBlock {div} at (0,0) size 50x50 [bgcolor=#FFC0CB] diff --git a/engine/src/flutter/tests/lowlevel/camel-case.sky b/engine/src/flutter/tests/lowlevel/camel-case.sky index 72cd7eea83..f307ef0b33 100644 --- a/engine/src/flutter/tests/lowlevel/camel-case.sky +++ b/engine/src/flutter/tests/lowlevel/camel-case.sky @@ -9,7 +9,7 @@ void main () { initUnit(); test('should have various casing', () { - expect(document.documentElement.tagName, equals('CamelCase')); + expect(document.firstElementChild.tagName, equals('CamelCase')); var element = document.createElement('CamelCase'); expect(element.tagName, equals('CamelCase')); diff --git a/engine/src/flutter/tests/lowlevel/hello-world-expected.txt b/engine/src/flutter/tests/lowlevel/hello-world-expected.txt index 39a622929e..6ba5ffa3d1 100644 --- a/engine/src/flutter/tests/lowlevel/hello-world-expected.txt +++ b/engine/src/flutter/tests/lowlevel/hello-world-expected.txt @@ -1,8 +1,7 @@ layer at (0,0) size 800x600 RenderView {#document} at (0,0) size 800x600 -layer at (0,0) size 800x19 - RenderBlock {foo} at (0,0) size 800x19 - RenderParagraph (anonymous) at (0,0) size 800x19 - RenderText {#text} at (0,0) size 99x19 - text run at (0,0) width 99: "Hello World!" + RenderBlock {foo} at (0,0) size 800x19 + RenderParagraph (anonymous) at (0,0) size 800x19 + RenderText {#text} at (0,0) size 99x19 + text run at (0,0) width 99: "Hello World!" diff --git a/engine/src/flutter/tests/lowlevel/home-expected.txt b/engine/src/flutter/tests/lowlevel/home-expected.txt index d5f7a8a0c4..d2ebc314a0 100644 --- a/engine/src/flutter/tests/lowlevel/home-expected.txt +++ b/engine/src/flutter/tests/lowlevel/home-expected.txt @@ -1,13 +1,12 @@ layer at (0,0) size 800x600 RenderView {#document} at (0,0) size 800x600 -layer at (0,0) size 800x137 - RenderBlock {div} at (0,0) size 800x137 - RenderBlock {div} at (32,32) size 736x38 - RenderParagraph (anonymous) at (0,0) size 736x38 - RenderText {#text} at (0,0) size 191x38 - text run at (0,0) width 191: "about:blank" - RenderBlock {div} at (16,110) size 768x19 [color=#BCD8F5] - RenderParagraph (anonymous) at (0,0) size 768x19 - RenderText {#text} at (0,0) size 152x19 - text run at (0,0) width 152: "Welcome to Sky!" + RenderBlock {div} at (0,0) size 800x137 + RenderBlock {div} at (32,32) size 736x38 + RenderParagraph (anonymous) at (0,0) size 736x38 + RenderText {#text} at (0,0) size 191x38 + text run at (0,0) width 191: "about:blank" + RenderBlock {div} at (16,110) size 768x19 [color=#BCD8F5] + RenderParagraph (anonymous) at (0,0) size 768x19 + RenderText {#text} at (0,0) size 152x19 + text run at (0,0) width 152: "Welcome to Sky!" diff --git a/engine/src/flutter/tests/lowlevel/iframe-expected.txt b/engine/src/flutter/tests/lowlevel/iframe-expected.txt index 2a7bc89522..f279d2d70d 100644 --- a/engine/src/flutter/tests/lowlevel/iframe-expected.txt +++ b/engine/src/flutter/tests/lowlevel/iframe-expected.txt @@ -1,25 +1,24 @@ layer at (0,0) size 800x600 RenderView {#document} at (0,0) size 800x600 -layer at (0,0) size 800x506 - RenderBlock {sky} at (0,0) size 800x506 - RenderBlock {div} at (0,0) size 800x228 - RenderParagraph (anonymous) at (0,0) size 800x19 - RenderText {#text} at (0,0) size 76x19 - text run at (0,0) width 76: "This is an" - RenderParagraph (anonymous) at (0,209) size 800x19 - RenderText {#text} at (0,0) size 72x19 - text run at (0,0) width 72: "element." - RenderBlock {div} at (0,228) size 800x200 - RenderParagraph (anonymous) at (0,0) size 800x19 - RenderText {#text} at (0,0) size 99x19 - text run at (0,0) width 99: "Placeholder." - RenderBlock {div} at (0,428) size 800x78 - RenderParagraph (anonymous) at (0,0) size 800x19 - RenderText {#text} at (0,0) size 218x19 - text run at (0,0) width 218: "Small iframe should render" - RenderParagraph (anonymous) at (0,59) size 800x19 - RenderText {#text} at (0,0) size 76x19 - text run at (0,0) width 76: "correctly." + RenderBlock {sky} at (0,0) size 800x506 + RenderBlock {div} at (0,0) size 800x228 + RenderParagraph (anonymous) at (0,0) size 800x19 + RenderText {#text} at (0,0) size 76x19 + text run at (0,0) width 76: "This is an" + RenderParagraph (anonymous) at (0,209) size 800x19 + RenderText {#text} at (0,0) size 72x19 + text run at (0,0) width 72: "element." + RenderBlock {div} at (0,228) size 800x200 + RenderParagraph (anonymous) at (0,0) size 800x19 + RenderText {#text} at (0,0) size 99x19 + text run at (0,0) width 99: "Placeholder." + RenderBlock {div} at (0,428) size 800x78 + RenderParagraph (anonymous) at (0,0) size 800x19 + RenderText {#text} at (0,0) size 218x19 + text run at (0,0) width 218: "Small iframe should render" + RenderParagraph (anonymous) at (0,59) size 800x19 + RenderText {#text} at (0,0) size 76x19 + text run at (0,0) width 76: "correctly." layer at (0,19) size 340x190 RenderReplaced {iframe} at (0,19) size 340x190 [border: (20px solid #000000)] layer at (0,447) size 300x40 diff --git a/engine/src/flutter/tests/lowlevel/img-expected.txt b/engine/src/flutter/tests/lowlevel/img-expected.txt index 329fb598e6..4017549890 100644 --- a/engine/src/flutter/tests/lowlevel/img-expected.txt +++ b/engine/src/flutter/tests/lowlevel/img-expected.txt @@ -1,7 +1,6 @@ layer at (0,0) size 800x600 RenderView {#document} at (0,0) size 800x600 -layer at (0,0) size 800x89 - RenderBlock {foo} at (0,0) size 800x89 - RenderImage {img} at (0,0) size 256x64 - RenderImage {img} at (0,64) size 100x25 + RenderBlock {foo} at (0,0) size 800x89 + RenderImage {img} at (0,0) size 256x64 + RenderImage {img} at (0,64) size 100x25 diff --git a/engine/src/flutter/tests/modules/load-event.sky b/engine/src/flutter/tests/modules/load-event.sky index f49c45faae..f351531973 100644 --- a/engine/src/flutter/tests/modules/load-event.sky +++ b/engine/src/flutter/tests/modules/load-event.sky @@ -9,7 +9,7 @@ element.setAttribute("as", "hello"); element.addEventListener("load", function() { document.getElementById("result1").textContent = "PASS: Load event fired."; }); -document.documentElement.appendChild(element); +document.firstElementChild.appendChild(element);