Changeset 133934 in webkit
- Timestamp:
- Nov 8, 2012, 12:41:16 PM (12 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r133932 r133934 1 2012-11-08 Tony Chang <tony@chromium.org> 2 3 Layout test editing/pasteboard/file-drag-to-editable.html flaky 4 https://bugs.webkit.org/show_bug.cgi?id=101092 5 6 Reviewed by Ryosuke Niwa. 7 8 Fix a flaky test. The problem was that we were confusing the test harness by 9 trying to do a navigation before the initial load finished (the notifyDone() 10 call did nothing because waitUntilDone() was missing). Depending on the state 11 of the frame loader when the test run, there was a race in whether or not we 12 would dump the results before or after completing the script execution. 13 14 Fix this by restructuring the test to run during onload and by calling notifyDone() 15 after the file load attempt failed. 16 17 * editing/pasteboard/file-drag-to-editable-expected.txt: 18 * editing/pasteboard/script-tests/file-drag-to-editable.js: 19 (runTest.window.onbeforeunload): Simplify and don't run nofityDone yet. 20 (runTest): Run test during onload event. 21 * platform/chromium/TestExpectations: Remove flaky marker. 22 1 23 2012-11-08 Erik Arvidsson <arv@chromium.org> 2 24 -
trunk/LayoutTests/editing/pasteboard/file-drag-to-editable-expected.txt
r74097 r133934 4 4 5 5 6 PASS window.attemptedFileNavigation is true 6 7 PASS successfullyParsed is true 7 8 -
trunk/LayoutTests/editing/pasteboard/script-tests/file-drag-to-editable.js
r120173 r133934 26 26 { 27 27 window.onbeforeunload = function() { 28 shouldBeTrue('successfullyParsed'); 29 debug('<br /><span class="pass">TEST COMPLETE</span>'); 28 window.attemptedFileNavigation = true; 30 29 31 30 // Don't remove the editable node, since we want to make sure there no stray file URLs were 32 31 // inserted during the drop. 33 34 testRunner.notifyDone();35 36 window.onbeforeunload = null;37 32 }; 38 33 dragFilesOntoEditableArea(['DRTFakeFile']); 39 testFailed('The test should have resulted in navigation'); 34 35 shouldBeTrue("window.attemptedFileNavigation"); 36 finishJSTest(); 40 37 } 41 38 42 39 var successfullyParsed = true; 43 40 44 if (window.eventSender) { 45 runTest(); 41 if (window.eventSender && window.testRunner) { 42 window.jsTestIsAsync = true; 43 44 window.onload = runTest; 46 45 } else { 47 46 testFailed('This test is not interactive, please run using DumpRenderTree'); -
trunk/LayoutTests/platform/chromium/TestExpectations
r133922 r133934 4075 4075 webkit.org/b/101093 [ Mac ] fast/sub-pixel/float-wrap-zoom.html [ ImageOnlyFailure ] 4076 4076 4077 # Flaky since r1330694078 webkit.org/b/101092 [ Mac Win Debug ] editing/pasteboard/file-drag-to-editable.html [ Failure Pass ]4079 4080 4077 # Crashy since at least r133035; gives a v8 error 4081 4078 webkit.org/b/101099 [ Linux Debug ] fast/files/workers/worker-apply-blob-url-to-xhr.html [ Crash Pass ]
Note:
See TracChangeset
for help on using the changeset viewer.