Changeset 245907 in webkit
- Timestamp:
- May 30, 2019, 4:06:34 PM (7 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
TestWebKitAPI/Tests/ios/DragAndDropTestsIOS.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r245904 r245907 1 2019-05-30 Wenson Hsieh <wenson_hsieh@apple.com> 2 3 DragAndDropTests.DataTransferExposePlainTextWithFileURLAsFile API test is failing 4 https://bugs.webkit.org/show_bug.cgi?id=198389 5 <rdar://problem/51266096> 6 7 Reviewed by Tim Horton. 8 9 This test started failing, since the fallback name for a dropped text file changed from "text.txt" to 10 "Document.txt" on newer iOS SDK versions. We simply fix this test by checking that the name of the file ends 11 with ".txt", and that the MIME type of the file is "text/plain". 12 13 * TestWebKitAPI/Tests/ios/DragAndDropTestsIOS.mm: 14 (TestWebKitAPI::TEST): 15 1 16 2019-05-30 Sihui Liu <sihui_liu@apple.com> 2 17 -
trunk/Tools/TestWebKitAPI/Tests/ios/DragAndDropTestsIOS.mm
r245882 r245907 1922 1922 EXPECT_WK_STREQ("", [webView stringByEvaluatingJavaScript:@"htmlData.textContent"]); 1923 1923 EXPECT_WK_STREQ("(FILE, text/plain)", [webView stringByEvaluatingJavaScript:@"items.textContent"]); 1924 EXPECT_WK_STREQ("('text.txt', text/plain)", [webView stringByEvaluatingJavaScript:@"files.textContent"]); 1924 1925 NSString *filesOutput = [webView stringByEvaluatingJavaScript:@"files.textContent"]; 1926 EXPECT_TRUE([filesOutput containsString:@"text/plain)"]); 1927 EXPECT_TRUE([filesOutput containsString:@".txt', "]); 1925 1928 } 1926 1929
Note:
See TracChangeset
for help on using the changeset viewer.