⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 245907 in webkit


Ignore:
Timestamp:
May 30, 2019, 4:06:34 PM (7 years ago)
Author:
Wenson Hsieh
Message:

DragAndDropTests.DataTransferExposePlainTextWithFileURLAsFile API test is failing
https://bugs.webkit.org/show_bug.cgi?id=198389
<rdar://problem/51266096>

Reviewed by Tim Horton.

This test started failing, since the fallback name for a dropped text file changed from "text.txt" to
"Document.txt" on newer iOS SDK versions. We simply fix this test by checking that the name of the file ends
with ".txt", and that the MIME type of the file is "text/plain".

  • TestWebKitAPI/Tests/ios/DragAndDropTestsIOS.mm:

(TestWebKitAPI::TEST):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r245904 r245907  
     12019-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
    1162019-05-30  Sihui Liu  <sihui_liu@apple.com>
    217
  • trunk/Tools/TestWebKitAPI/Tests/ios/DragAndDropTestsIOS.mm

    r245882 r245907  
    19221922    EXPECT_WK_STREQ("", [webView stringByEvaluatingJavaScript:@"htmlData.textContent"]);
    19231923    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', "]);
    19251928}
    19261929
Note: See TracChangeset for help on using the changeset viewer.