Changeset 257137 in webkit
- Timestamp:
- Feb 21, 2020 9:06:43 AM (4 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 54 added
- 36 edited
- 1 copied
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r257136 r257137 1 2020-02-21 Frederic Wang <fwang@igalia.com> 2 3 Update WPT tests for Intersection Observer 4 https://bugs.webkit.org/show_bug.cgi?id=208053 5 6 Reviewed by Daniel Bates. 7 8 Add iOS expectations and skip new tests timing out. 9 10 * TestExpectations: 11 * platform/ios/imported/w3c/web-platform-tests/intersection-observer/cross-origin-iframe.sub-expected.txt: Added. 12 * platform/ios/imported/w3c/web-platform-tests/intersection-observer/iframe-no-root-with-wrapping-scroller-expected.txt: Added. 13 * platform/ios/imported/w3c/web-platform-tests/intersection-observer/nested-cross-origin-iframe.sub-expected.txt: Remamed from platform/ios/imported/w3c/web-platform-tests/intersection-observer/nested-cross-origin-iframe.sub.txt. 14 1 15 2020-02-21 Jason Lawrence <lawrence.j@apple.com> 2 16 -
trunk/LayoutTests/TestExpectations
r257129 r257137 3351 3351 3352 3352 webkit.org/b/206676 imported/w3c/web-platform-tests/requestidlecallback/callback-xhr-sync.html [ Pass Failure ] 3353 3354 # wpt intersection-observer failures 3355 webkit.org/b/208052 imported/w3c/web-platform-tests/intersection-observer/v2/cross-origin-effects.sub.html [ Timeout ] 3356 webkit.org/b/208052 imported/w3c/web-platform-tests/intersection-observer/v2/cross-origin-occlusion.sub.html [ Timeout ] 3353 3357 3354 3358 # wpt css-backgrounds failures -
trunk/LayoutTests/imported/w3c/ChangeLog
r257132 r257137 1 2020-02-21 Frederic Wang <fwang@igalia.com> 2 3 Update WPT tests for Intersection Observer 4 https://bugs.webkit.org/show_bug.cgi?id=208053 5 6 Reviewed by Daniel Bates. 7 8 * web-platform-tests/intersection-observer/bounding-box.html: 9 * web-platform-tests/intersection-observer/client-rect.html: 10 * web-platform-tests/intersection-observer/containing-block.html: 11 * web-platform-tests/intersection-observer/cross-origin-iframe.sub-expected.txt: Added. 12 * web-platform-tests/intersection-observer/cross-origin-iframe.sub.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/intersection-observer/cross-origin-iframe.html. 13 * web-platform-tests/intersection-observer/disconnect.html: 14 * web-platform-tests/intersection-observer/display-none.html: 15 * web-platform-tests/intersection-observer/document-scrolling-element-root-expected.txt: Added. 16 * web-platform-tests/intersection-observer/document-scrolling-element-root.html: Added. 17 * web-platform-tests/intersection-observer/edge-inclusive-intersection.html: 18 * web-platform-tests/intersection-observer/empty-root-margin.html: 19 * web-platform-tests/intersection-observer/iframe-no-root-with-wrapping-scroller-expected.txt: Added. 20 * web-platform-tests/intersection-observer/iframe-no-root-with-wrapping-scroller.html: Copied from LayoutTests/imported/w3c/web-platform-tests/intersection-observer/iframe-no-root.html. 21 * web-platform-tests/intersection-observer/iframe-no-root.html: 22 * web-platform-tests/intersection-observer/initial-observation-with-threshold.html: 23 * web-platform-tests/intersection-observer/inline-client-rect.html: 24 * web-platform-tests/intersection-observer/isIntersecting-change-events.html: 25 * web-platform-tests/intersection-observer/isIntersecting-threshold-expected.txt: Added. 26 * web-platform-tests/intersection-observer/isIntersecting-threshold.html: Added. 27 * web-platform-tests/intersection-observer/multiple-targets.html: 28 * web-platform-tests/intersection-observer/multiple-thresholds.html: 29 * web-platform-tests/intersection-observer/nested-cross-origin-iframe.sub-expected.txt: Added. 30 * web-platform-tests/intersection-observer/nested-cross-origin-iframe.sub.html: Added. 31 * web-platform-tests/intersection-observer/observer-attributes.html: 32 * web-platform-tests/intersection-observer/observer-exceptions.html: 33 * web-platform-tests/intersection-observer/observer-in-iframe.html: 34 * web-platform-tests/intersection-observer/observer-without-js-reference.html: 35 * web-platform-tests/intersection-observer/remove-element.html: 36 * web-platform-tests/intersection-observer/resources/cross-origin-child-iframe.sub.html: Added. 37 * web-platform-tests/intersection-observer/resources/cross-origin-subframe.html: 38 * web-platform-tests/intersection-observer/resources/intersection-observer-test-utils.js: 39 (waitForNotification): 40 (waitForFrame): 41 (runTestCycle): 42 (checkJsonEntry): 43 * web-platform-tests/intersection-observer/resources/nested-cross-origin-child-iframe.sub.html: Added. 44 * web-platform-tests/intersection-observer/resources/nested-cross-origin-grand-child-iframe.html: Added. 45 * web-platform-tests/intersection-observer/resources/same-origin-grand-child-iframe.html: Added. 46 * web-platform-tests/intersection-observer/resources/scaled-target-subframe.html: Added. 47 * web-platform-tests/intersection-observer/resources/v2-subframe.html: Added. 48 * web-platform-tests/intersection-observer/resources/w3c-import.log: 49 * web-platform-tests/intersection-observer/root-margin-rounding-expected.txt: Added. 50 * web-platform-tests/intersection-observer/root-margin-rounding.html: Added. 51 * web-platform-tests/intersection-observer/root-margin.html: 52 * web-platform-tests/intersection-observer/rtl-clipped-root-expected.txt: Added. 53 * web-platform-tests/intersection-observer/rtl-clipped-root.html: Added. 54 * web-platform-tests/intersection-observer/same-document-no-root.html: 55 * web-platform-tests/intersection-observer/same-document-root.html: 56 * web-platform-tests/intersection-observer/same-document-zero-size-target.html: 57 * web-platform-tests/intersection-observer/same-origin-grand-child-iframe.sub-expected.txt: Added. 58 * web-platform-tests/intersection-observer/same-origin-grand-child-iframe.sub.html: Added. 59 * web-platform-tests/intersection-observer/shadow-content.html: 60 * web-platform-tests/intersection-observer/target-in-different-window.html: 61 * web-platform-tests/intersection-observer/text-target.html: 62 * web-platform-tests/intersection-observer/timestamp.html: 63 * web-platform-tests/intersection-observer/unclipped-root.html: 64 * web-platform-tests/intersection-observer/v2/animated-occlusion-expected.txt: Added. 65 * web-platform-tests/intersection-observer/v2/animated-occlusion.html: Added. 66 * web-platform-tests/intersection-observer/v2/blur-filter-expected.txt: Added. 67 * web-platform-tests/intersection-observer/v2/blur-filter.html: Added. 68 * web-platform-tests/intersection-observer/v2/box-shadow-expected.txt: Added. 69 * web-platform-tests/intersection-observer/v2/box-shadow.html: Added. 70 * web-platform-tests/intersection-observer/v2/cross-origin-effects.sub-expected.txt: Added. 71 * web-platform-tests/intersection-observer/v2/cross-origin-occlusion.sub-expected.txt: Added. 72 * web-platform-tests/intersection-observer/v2/delay-test-expected.txt: Added. 73 * web-platform-tests/intersection-observer/v2/delay-test.html: Added. 74 * web-platform-tests/intersection-observer/v2/drop-shadow-filter-vertical-rl-expected.txt: Added. 75 * web-platform-tests/intersection-observer/v2/drop-shadow-filter-vertical-rl.html: Added. 76 * web-platform-tests/intersection-observer/v2/iframe-target-expected.txt: Added. 77 * web-platform-tests/intersection-observer/v2/iframe-target.html: Added. 78 * web-platform-tests/intersection-observer/v2/inline-occlusion-expected.txt: Added. 79 * web-platform-tests/intersection-observer/v2/inline-occlusion.html: Added. 80 * web-platform-tests/intersection-observer/v2/position-relative-expected.txt: Added. 81 * web-platform-tests/intersection-observer/v2/position-relative.html: Added. 82 * web-platform-tests/intersection-observer/v2/scaled-target-expected.txt: Added. 83 * web-platform-tests/intersection-observer/v2/scaled-target.html: Added. 84 * web-platform-tests/intersection-observer/v2/simple-effects-expected.txt: Added. 85 * web-platform-tests/intersection-observer/v2/simple-effects.html: Added. 86 * web-platform-tests/intersection-observer/v2/simple-occlusion-expected.txt: Added. 87 * web-platform-tests/intersection-observer/v2/simple-occlusion-svg-foreign-object-expected.txt: Added. 88 * web-platform-tests/intersection-observer/v2/simple-occlusion-svg-foreign-object.html: Added. 89 * web-platform-tests/intersection-observer/v2/simple-occlusion.html: Added. 90 * web-platform-tests/intersection-observer/v2/text-editor-occlusion-expected.txt: Added. 91 * web-platform-tests/intersection-observer/v2/text-editor-occlusion.html: Added. 92 * web-platform-tests/intersection-observer/v2/text-shadow-expected.txt: Added. 93 * web-platform-tests/intersection-observer/v2/text-shadow.html: Added. 94 * web-platform-tests/intersection-observer/v2/w3c-import.log: Added. 95 * web-platform-tests/intersection-observer/w3c-import.log: 96 * web-platform-tests/intersection-observer/zero-area-element-hidden.html: 97 * web-platform-tests/intersection-observer/zero-area-element-visible.html: 98 * web-platform-tests/intersection-observer/v2/cross-origin-effects.sub.html: Added. 99 * web-platform-tests/intersection-observer/v2/cross-origin-occlusion.sub.html: Added. 100 1 101 2020-02-21 Carlos Alberto Lopez Perez <clopez@igalia.com> 2 102 -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/bounding-box.html
r237829 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/client-rect.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/containing-block.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/cross-origin-iframe.sub.html
r257136 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> … … 21 22 22 23 <div class="spacer"></div> 23 <iframe src=" resources/cross-origin-subframe.html" sandbox="allow-scripts"></iframe>24 <iframe src="http://{{hosts[alt][]}}:{{ports[http][0]}}/intersection-observer/resources/cross-origin-subframe.html" sandbox="allow-scripts"></iframe> 24 25 <div class="spacer"></div> 25 26 -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/disconnect.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/display-none.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/edge-inclusive-intersection.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/empty-root-margin.html
r238610 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/iframe-no-root-with-wrapping-scroller.html
r257136 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> … … 20 21 21 22 <div class="spacer"></div> 22 <iframe id="target-iframe" src="resources/iframe-no-root-subframe.html"></iframe> 23 <div style="overflow: hidden"> 24 <iframe id="target-iframe" src="resources/iframe-no-root-subframe.html"></iframe> 25 </div> 23 26 <div class="spacer"></div> 24 27 -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/iframe-no-root.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/initial-observation-with-threshold.html
r235923 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/inline-client-rect.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/isIntersecting-change-events.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> … … 92 93 93 94 function step2() { 94 assert_equals(entries.length, 4, "Has 3total notifications because 4th element was added.");95 assert_equals(entries.length, 4, "Has 4 total notifications because 4th element was added."); 95 96 checkRect(entries[3].boundingClientRect, [0, 100, 300, 400], "Check 4th entry rect"); 96 97 assert_equals(entries[3].target.id, 'target4', "Check 4th entry target id."); -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/multiple-targets.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/multiple-thresholds.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/observer-attributes.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/observer-exceptions.html
r234818 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> … … 5 6 <script> 6 7 test(function () { 7 assert_throws (RangeError(), function() {8 assert_throws_js(RangeError, function() { 8 9 new IntersectionObserver(e => {}, {threshold: [1.1]}) 9 10 }) … … 11 12 12 13 test(function () { 13 assert_throws (TypeError(), function() {14 assert_throws_js(TypeError, function() { 14 15 new IntersectionObserver(e => {}, {threshold: ["foo"]}) 15 16 }) … … 17 18 18 19 test(function () { 19 assert_throws ("SYNTAX_ERR", function() {20 assert_throws_dom("SYNTAX_ERR", function() { 20 21 new IntersectionObserver(e => {}, {rootMargin: "1"}) 21 22 }) … … 23 24 24 25 test(function () { 25 assert_throws ("SYNTAX_ERR", function() {26 assert_throws_dom("SYNTAX_ERR", function() { 26 27 new IntersectionObserver(e => {}, {rootMargin: "2em"}) 27 28 }) … … 29 30 30 31 test(function () { 31 assert_throws ("SYNTAX_ERR", function() {32 assert_throws_dom("SYNTAX_ERR", function() { 32 33 new IntersectionObserver(e => {}, {rootMargin: "auto"}) 33 34 }) … … 35 36 36 37 test(function () { 37 assert_throws ("SYNTAX_ERR", function() {38 assert_throws_dom("SYNTAX_ERR", function() { 38 39 new IntersectionObserver(e => {}, {rootMargin: "calc(1px + 2px)"}) 39 40 }) … … 41 42 42 43 test(function () { 43 assert_throws ("SYNTAX_ERR", function() {44 assert_throws_dom("SYNTAX_ERR", function() { 44 45 new IntersectionObserver(e => {}, {rootMargin: "1px !important"}) 45 46 }) … … 47 48 48 49 test(function () { 49 assert_throws ("SYNTAX_ERR", function() {50 assert_throws_dom("SYNTAX_ERR", function() { 50 51 new IntersectionObserver(e => {}, {rootMargin: "1px 1px 1px 1px 1px"}) 51 52 }) … … 53 54 54 55 test(function () { 55 assert_throws (TypeError(), function() {56 assert_throws_js(TypeError, function() { 56 57 let observer = new IntersectionObserver(c => {}, {}); 57 58 observer.observe("foo"); -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/observer-in-iframe.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <style> 3 4 pre, #log { -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/observer-without-js-reference.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/remove-element.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/resources/cross-origin-subframe.html
r234723 r257137 2 2 <div style="height: 200px; width: 100px;"></div> 3 3 <div id="target" style="background-color: green; width:100px; height:100px"></div> 4 <div id="empty-target" style="width: 100px"></div> 4 5 <div style="height: 200px; width: 100px;"></div> 5 6 … … 7 8 var port; 8 9 var entries = []; 9 var target = document.getElementById('target'); 10 var target = document.getElementById("target"); 11 var emptyTarget = document.getElementById("empty-target"); 10 12 var scroller = document.scrollingElement; 11 13 var nextStep; … … 27 29 intersectionRect: clientRectToJson(entry.intersectionRect), 28 30 rootBounds: clientRectToJson(entry.rootBounds), 31 isIntersecting: entry.isIntersecting, 29 32 target: entry.target.id 30 };31 }32 33 function coordinatesToClientRectJson(top, right, bottom, left) {34 return {35 top: top,36 right: right,37 bottom: bottom,38 left: left39 33 }; 40 34 } … … 49 43 }, { rootMargin: "7px" }); 50 44 observer.observe(target); 45 observer.observe(emptyTarget); 51 46 52 47 function step0() { … … 54 49 nextStep = step1; 55 50 var expected = [{ 56 boundingClientRect: coordinatesToClientRectJson(8, 208, 108, 308),57 intersectionRect: coordinatesToClientRectJson(0, 0, 0, 0),51 boundingClientRect: [8, 108, 208, 308], 52 intersectionRect: [0, 0, 0, 0], 58 53 rootBounds: "null", 54 isIntersecting: false, 59 55 target: target.id 56 }, { 57 boundingClientRect: [8, 108, 308, 308], 58 intersectionRect: [0, 0, 0, 0], 59 rootBounds: "null", 60 isIntersecting: false, 61 target: emptyTarget.id 60 62 }]; 61 63 port.postMessage({ … … 84 86 entries = entries.concat(observer.takeRecords()); 85 87 var expected = [{ 86 boundingClientRect: coordinatesToClientRectJson(-42, 108, 58, 8),87 intersectionRect: coordinatesToClientRectJson(0, 108, 58, 8),88 boundingClientRect: [8, 108, -42, 58], 89 intersectionRect: [8, 108, 0, 58], 88 90 rootBounds: "null", 91 isIntersecting: true, 89 92 target: target.id 93 }, { 94 boundingClientRect: [8, 108, 58, 58], 95 intersectionRect: [8, 108, 58, 58], 96 rootBounds: "null", 97 isIntersecting: true, 98 target: emptyTarget.id 90 99 }]; 91 100 port.postMessage({ … … 102 111 entries = entries.concat(observer.takeRecords()); 103 112 var expected = [{ 104 boundingClientRect: coordinatesToClientRectJson(-42, 108, 58, 8),105 intersectionRect: coordinatesToClientRectJson(0, 0, 0, 0),113 boundingClientRect: [8, 108, -42, 58], 114 intersectionRect: [0, 0, 0, 0], 106 115 rootBounds: "null", 116 isIntersecting: false, 107 117 target: target.id 118 }, { 119 boundingClientRect: [8, 108, 58, 58], 120 intersectionRect: [0, 0, 0, 0], 121 rootBounds: "null", 122 isIntersecting: false, 123 target: emptyTarget.id 108 124 }]; 109 125 port.postMessage({ -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/resources/intersection-observer-test-utils.js
r235923 r257137 73 73 function waitForNotification(t, f) { 74 74 requestAnimationFrame(function() { 75 requestAnimationFrame(function() { t.step_timeout(f); }); 75 requestAnimationFrame(function() { t.step_timeout(f, 0); }); 76 }); 77 } 78 79 // If you need to wait until the IntersectionObserver algorithm has a chance 80 // to run, but don't need to wait for delivery of the notifications... 81 function waitForFrame(t, f) { 82 requestAnimationFrame(function() { 83 t.step_timeout(f, 0); 76 84 }); 77 85 } … … 86 94 // Following these rules will ensure that the test suite will not abort before 87 95 // all test steps have run. 88 function runTestCycle(f, description) { 96 // 97 // If the 'delay' parameter to the IntersectionObserver constructor is used, 98 // tests will need to add the same delay to their runTestCycle invocations, to 99 // wait for notifications to be generated and delivered. 100 function runTestCycle(f, description, delay) { 89 101 async_test(function(t) { 90 waitForNotification(t, t.step_func_done(f)); 102 if (delay) { 103 step_timeout(() => { 104 waitForNotification(t, t.step_func_done(f)); 105 }, delay); 106 } else { 107 waitForNotification(t, t.step_func_done(f)); 108 } 91 109 }, description); 92 110 } … … 161 179 else 162 180 checkRect(actual.rootBounds, expected.rootBounds, 'entry.rootBounds'); 181 assert_equals(actual.isIntersecting, expected.isIntersecting); 163 182 assert_equals(actual.target, expected.target); 164 183 } -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/resources/w3c-import.log
r234723 r257137 15 15 ------------------------------------------------------------------------ 16 16 List of files: 17 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/resources/cross-origin-child-iframe.sub.html 17 18 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/resources/cross-origin-subframe.html 18 19 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/resources/iframe-no-root-subframe.html 19 20 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/resources/intersection-observer-test-utils.js 21 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/resources/nested-cross-origin-child-iframe.sub.html 22 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/resources/nested-cross-origin-grand-child-iframe.html 20 23 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/resources/observer-in-iframe-subframe.html 24 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/resources/same-origin-grand-child-iframe.html 25 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/resources/scaled-target-subframe.html 21 26 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/resources/timestamp-subframe.html 27 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/resources/v2-subframe.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/root-margin.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/same-document-no-root.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/same-document-root.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/same-document-zero-size-target.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/shadow-content.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/target-in-different-window.html
r237829 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/text-target.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/timestamp.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/unclipped-root.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/w3c-import.log
r237829 r257137 19 19 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/client-rect.html 20 20 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/containing-block.html 21 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/cross-origin-iframe. html21 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/cross-origin-iframe.sub.html 22 22 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/disconnect.html 23 23 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/display-none.html 24 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/document-scrolling-element-root.html 24 25 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/edge-inclusive-intersection.html 26 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/empty-root-margin.html 25 27 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/idlharness.window.js 28 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/iframe-no-root-with-wrapping-scroller.html 26 29 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/iframe-no-root.html 27 30 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/initial-observation-with-threshold.html 28 31 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/inline-client-rect.html 32 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/inline-with-block-child-client-rect.html 29 33 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/isIntersecting-change-events.html 34 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/isIntersecting-threshold.html 30 35 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/multiple-targets.html 31 36 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/multiple-thresholds.html 37 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/nested-cross-origin-iframe.sub.html 32 38 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/observer-attributes.html 33 39 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/observer-exceptions.html … … 35 41 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/observer-without-js-reference.html 36 42 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/remove-element.html 43 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/root-margin-root-element.html 44 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/root-margin-rounding.html 37 45 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/root-margin.html 46 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/rtl-clipped-root.html 38 47 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/same-document-no-root.html 39 48 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/same-document-root.html 40 49 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/same-document-zero-size-target.html 50 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/same-origin-grand-child-iframe.sub.html 41 51 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/shadow-content.html 42 52 /LayoutTests/imported/w3c/web-platform-tests/intersection-observer/target-in-different-window.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/zero-area-element-hidden.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/zero-area-element-visible.html
r234723 r257137 1 1 <!DOCTYPE html> 2 <meta name="viewport" content="width=device-width,initial-scale=1"> 2 3 <script src="/resources/testharness.js"></script> 3 4 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/platform/ios/imported/w3c/web-platform-tests/intersection-observer/cross-origin-iframe.sub-expected.txt
r257136 r257137 4 4 PASS First rAF 5 5 PASS topDocument.scrollingElement.scrollTop = 200 6 FAIL iframeDocument.scrollingElement.scrollTop = 250 assert_equals: expected 1but got 07 FAIL topDocument.scrollingElement.scrollTop = 100 assert_equals: expected 1but got 06 FAIL iframeDocument.scrollingElement.scrollTop = 250 assert_equals: expected 2 but got 0 7 FAIL topDocument.scrollingElement.scrollTop = 100 assert_equals: expected 2 but got 0 8 8
Note: See TracChangeset
for help on using the changeset viewer.