Changeset 245012 in webkit
- Timestamp:
- May 7, 2019 9:28:00 AM (5 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r245010 r245012 1 2019-05-07 Chris Dumez <cdumez@apple.com> 2 3 fast/dom/frame-src-javascript-url-async.html is flaky 4 https://bugs.webkit.org/show_bug.cgi?id=197664 5 6 Unreviewed, tweak test so that it is no longer flaky. 7 8 * fast/dom/frame-src-javascript-url-async-expected.txt: 9 * fast/dom/frame-src-javascript-url-async.html: 10 1 11 2019-05-07 Ryan Haddad <ryanhaddad@apple.com> 2 12 -
trunk/LayoutTests/fast/dom/frame-src-javascript-url-async-expected.txt
r244892 r245012 4 4 5 5 6 PASS frame 2.contentWindow is initialFrame2Window7 PASS frame 2.contentDocument is initialFrame2Document8 PASS messages is "123 4"6 PASS frame1.contentWindow is initialFrame1Window 7 PASS frame1.contentDocument is initialFrame1Document 8 PASS messages is "123" 9 9 PASS frame1.contentWindow is initialFrame1Window 10 10 PASS frame1.contentDocument is initialFrame1Document 11 11 PASS frame2.contentWindow is initialFrame2Window 12 PASS frame2.contentDocument is initialFrame2Document 13 PASS frame3.contentWindow is initialFrame3Window 14 PASS frame3.contentDocument is not initialFrame3Document 15 PASS frame3.contentWindow is initialFrame3Window 16 PASS frame3.contentDocument is not initialFrame3Document 17 PASS frame3.contentDocument.documentElement.textContent is "1" 12 PASS frame2.contentDocument is not initialFrame2Document 13 PASS frame2.contentWindow is initialFrame2Window 14 PASS frame2.contentDocument is not initialFrame2Document 15 PASS frame2.contentDocument.documentElement.textContent is "1" 18 16 PASS successfullyParsed is true 19 17 20 18 TEST COMPLETE 21 19 -
trunk/LayoutTests/fast/dom/frame-src-javascript-url-async.html
r244892 r245012 8 8 9 9 let messages = ""; 10 const expectedMessageCount = 4;10 const expectedMessageCount = 3; 11 11 function log(msg) 12 12 { 13 13 messages += msg; 14 14 if (messages.length == expectedMessageCount) { 15 shouldBeEqualToString("messages", "123 4");15 shouldBeEqualToString("messages", "123"); 16 16 shouldBe("frame1.contentWindow", "initialFrame1Window"); 17 17 shouldBe("frame1.contentDocument", "initialFrame1Document"); 18 18 shouldBe("frame2.contentWindow", "initialFrame2Window"); 19 shouldBe("frame2.contentDocument", "initialFrame2Document");20 shouldBe("frame3.contentWindow", "initialFrame3Window");21 19 // Firefox 66 and Chrome 74 disagree here, we match Chrome. 22 shouldNotBe("frame 3.contentDocument", "initialFrame3Document");20 shouldNotBe("frame2.contentDocument", "initialFrame2Document"); 23 21 setTimeout(() => { 24 shouldBe("frame 3.contentWindow", "initialFrame3Window");25 shouldNotBe("frame 3.contentDocument", "initialFrame3Document");26 shouldBeEqualToString("frame 3.contentDocument.documentElement.textContent", "1");22 shouldBe("frame2.contentWindow", "initialFrame2Window"); 23 shouldNotBe("frame2.contentDocument", "initialFrame2Document"); 24 shouldBeEqualToString("frame2.contentDocument.documentElement.textContent", "1"); 27 25 finishJSTest(); 28 26 }), 0; … … 30 28 } 31 29 </script> 32 <iframe id="frame1" src="javascript:parent.log('3')"></iframe> 33 <iframe id="frame2"></iframe> 34 <iframe id="frame3" src="javascript:'1'"></iframe> 30 <iframe id="frame1"></iframe> 31 <iframe id="frame2" src="javascript:'1'"></iframe> 35 32 <script> 36 33 frame1 = document.getElementById("frame1"); 37 34 frame2 = document.getElementById("frame2"); 38 frame3 = document.getElementById("frame3");39 35 initialFrame1Window = frame1.contentWindow; 40 36 initialFrame1Document = frame1.contentDocument; 41 37 initialFrame2Window = frame2.contentWindow; 42 38 initialFrame2Document = frame2.contentDocument; 43 initialFrame3Window = frame3.contentWindow;44 initialFrame3Document = frame3.contentDocument;45 39 log('1'); 46 frame 2.src = "javascript:parent.log('4')";47 shouldBe("frame 2.contentWindow", "initialFrame2Window");48 shouldBe("frame 2.contentDocument", "initialFrame2Document");40 frame1.src = "javascript:parent.log('3')"; 41 shouldBe("frame1.contentWindow", "initialFrame1Window"); 42 shouldBe("frame1.contentDocument", "initialFrame1Document"); 49 43 log('2'); 50 44 </script>
Note: See TracChangeset
for help on using the changeset viewer.