Changeset 83823 in webkit
- Timestamp:
- Apr 14, 2011 1:27:13 AM (13 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r83822 r83823 1 2011-04-14 Tony Gentilcore <tonyg@chromium.org> 2 3 Reviewed by Kent Tamura. 4 5 [chromium] http/tests/loading/preload-append-scan.php fails 6 https://bugs.webkit.org/show_bug.cgi?id=58352 7 8 On chromium, onload-vs-immediate-refresh always caused the subsequent test to fail 9 with an additional didFinishLoadForFrame message. This was because the test 10 navigates via a refresh, but did not actually wait for the navigation to complete. 11 12 This patch fixes that by adding a waitUntilDone() and calling notifyDone() after the 13 redirect target page loads. Now the log for this test shows both navigations and no 14 part of the navigation leaks into the next test. 15 16 Also, since dumpAsText() shows alerts, there was no reason to write vs. alert the 17 SUCCESS message. 18 19 * http/tests/loading/onload-vs-immediate-refresh-expected.txt: 20 * http/tests/loading/onload-vs-immediate-refresh.pl: 21 * platform/chromium/test_expectations.txt: 22 1 23 2011-04-14 James Robinson <jamesr@chromium.org> 2 24 -
trunk/LayoutTests/http/tests/loading/onload-vs-immediate-refresh-expected.txt
r39097 r83823 1 1 main frame - didStartProvisionalLoadForFrame 2 main frame - didCommitLoadForFrame 3 main frame - didFinishDocumentLoadForFrame 4 ALERT: SUCCESS 5 main frame - willPerformClientRedirectToURL: data:text/html,%3Cbody%20onload='if(window.layoutTestController)layoutTestController.notifyDone();'%3EYou%20should%20have%20seen%20an%20alert. 6 main frame - didHandleOnloadEventsForFrame 7 main frame - didFinishLoadForFrame 8 main frame - didStartProvisionalLoadForFrame 9 main frame - didCancelClientRedirectForFrame 2 10 main frame - didCommitLoadForFrame 3 11 main frame - didFinishDocumentLoadForFrame 4 12 main frame - didHandleOnloadEventsForFrame 5 13 main frame - didFinishLoadForFrame 6 SUCCESS 14 You should have seen an alert. -
trunk/LayoutTests/http/tests/loading/onload-vs-immediate-refresh.pl
r27986 r83823 7 7 $| = 1; 8 8 9 print "Refresh: 0;url=data:text/ plain,You should have seen an alert.\r\n";9 print "Refresh: 0;url=data:text/html,<body onload='if (window.layoutTestController) layoutTestController.notifyDone();'>You should have seen an alert.\r\n"; 10 10 print "Content-Type: text/html\r\n"; 11 11 print "\r\n"; … … 15 15 <head> 16 16 <script> 17 if (window.layoutTestController) 17 if (window.layoutTestController) { 18 18 layoutTestController.dumpAsText(); 19 layoutTestController.waitUntilDone(); 20 } 19 21 </script> 20 <meta http-equiv="refresh" content="0;url=data:text/ plain,You should have seen analert.">22 <meta http-equiv="refresh" content="0;url=data:text/html,%3Cbody%20onload='if(window.layoutTestController)layoutTestController.notifyDone();'%3EYou%20should%20have%20seen%20an%20alert."> 21 23 </head> 22 24 EOF … … 27 29 28 30 print << "EOF"; 29 <body onload=" if (window.layoutTestController) document.write('<p>SUCCESS</p>'); elsealert('SUCCESS');">31 <body onload="alert('SUCCESS');"> 30 32 </body> 31 33 </html> -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r83822 r83823 2592 2592 BUG_DRT : http/tests/misc/slow-loading-image-in-pattern.html = IMAGE 2593 2593 2594 // Extra didFinishDocumentLoadForFrame line.2595 // The first didFinishDocumentLoadForFrame line is for the previous test document.2596 BUG_DRT WIN MAC LINUX : http/tests/loading/preload-img-test.html = TEXT TIMEOUT PASS2597 2598 2594 // Flaky since 2010-09-17? 2599 2595 BUGCR57950 WIN XP : svg/batik/text/verticalText.svg = CRASH PASS … … 3318 3314 // The merged test is flaky on Chromium since then. 3319 3315 BUGCR78998 DEBUG : fast/frames/frame-element-name.html = TEXT PASS 3320 // Added in http://trac.webkit.org/changeset/83321/. It's very flaky.3321 BUGCR79006 : http/tests/loading/preload-append-scan.php = TEXT PASS3322 3316 3323 3317 // Windows 7 failures that need triaging and probably mostly just need
Note: See TracChangeset
for help on using the changeset viewer.