Changeset 167491 in webkit
- Timestamp:
- Apr 18, 2014 10:08:07 AM (10 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r167488 r167491 1 2014-04-17 Alexey Proskuryakov <ap@apple.com> 2 3 [Mac] AttributedStringTest API tests fail with async text input 4 https://bugs.webkit.org/show_bug.cgi?id=131833 5 6 Reviewed by Enrica Casucci. 7 8 Don't run sync NSTextInputClient tests where we don't implement these calls. 9 10 * TestWebKitAPI/Tests/mac/AttributedString.mm: 11 (TestWebKitAPI::AttributedStringTest_CustomFont::didLoadURL): 12 (TestWebKitAPI::AttributedStringTest_CustomFont::runSyncTest): 13 (TestWebKitAPI::AttributedStringTest_Strikethrough::didLoadURL): 14 (TestWebKitAPI::AttributedStringTest_Strikethrough::runSyncTest): 15 (TestWebKitAPI::AttributedStringTest_CustomFont::runTest): Deleted. 16 (TestWebKitAPI::AttributedStringTest_Strikethrough::runTest): Deleted. 17 1 18 2014-04-18 Philippe Normand <pnormand@igalia.com> 2 19 -
trunk/Tools/TestWebKitAPI/Tests/mac/AttributedString.mm
r153344 r167491 39 39 } 40 40 41 #if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1090 41 42 static NSAttributedString *attributedString(WKView *wkView, NSRange range) 42 43 { … … 44 45 return [wkView attributedSubstringForProposedRange:range actualRange:&actualRange]; 45 46 } 46 47 #endif 47 48 48 49 class AttributedStringTest_CustomFont : public WebKitAgnosticTest { 49 50 public: 50 template <typename View> void run Test(View);51 template <typename View> void runSyncTest(View); 51 52 52 53 // WebKitAgnosticTest 53 virtual void didLoadURL(WebView *webView) { runTest(webView); } 54 virtual void didLoadURL(WKView *wkView) { runTest(wkView); } 54 virtual void didLoadURL(WebView *webView) { runSyncTest(webView); } 55 #if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1090 56 virtual void didLoadURL(WKView *wkView) { runSyncTest(wkView); } 57 #else 58 // FIXME: Reimplement the test using async NSTextInputClient interface. 59 virtual void didLoadURL(WKView *wkView) { } 60 #endif 55 61 56 62 virtual NSURL *url() const { return [[NSBundle mainBundle] URLForResource:@"attributedStringCustomFont" withExtension:@"html" subdirectory:@"TestWebKitAPI.resources"]; } … … 58 64 59 65 template <typename View> 60 void AttributedStringTest_CustomFont::run Test(View view)66 void AttributedStringTest_CustomFont::runSyncTest(View view) 61 67 { 62 68 NSAttributedString *attrString = attributedString(view, NSMakeRange(0, 5)); … … 69 75 } 70 76 77 #if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1090 71 78 TEST_F(AttributedStringTest_CustomFont, WebKit2) 72 79 { 73 80 runWebKit2Test(); 74 81 } 82 #endif 75 83 76 84 class AttributedStringTest_Strikethrough : public WebKitAgnosticTest { 77 85 public: 78 template <typename View> void run Test(View);86 template <typename View> void runSyncTest(View); 79 87 80 88 // WebKitAgnosticTest 81 virtual void didLoadURL(WebView *webView) { runTest(webView); } 82 virtual void didLoadURL(WKView *wkView) { runTest(wkView); } 89 virtual void didLoadURL(WebView *webView) { runSyncTest(webView); } 90 #if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1090 91 virtual void didLoadURL(WKView *wkView) { runSyncTest(wkView); } 92 #else 93 // FIXME: Reimplement the test using async NSTextInputClient interface. 94 virtual void didLoadURL(WKView *wkView) { } 95 #endif 83 96 84 97 virtual NSURL *url() const { return [[NSBundle mainBundle] URLForResource:@"attributedStringStrikethrough" withExtension:@"html" subdirectory:@"TestWebKitAPI.resources"]; } … … 86 99 87 100 template <typename View> 88 void AttributedStringTest_Strikethrough::run Test(View view)101 void AttributedStringTest_Strikethrough::runSyncTest(View view) 89 102 { 90 103 NSAttributedString *attrString = attributedString(view, NSMakeRange(0, 5)); … … 103 116 } 104 117 118 #if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1090 105 119 TEST_F(AttributedStringTest_Strikethrough, WebKit2) 106 120 { 107 121 runWebKit2Test(); 108 122 } 123 #endif 109 124 110 125 } // namespace TestWebKitAPI
Note: See TracChangeset
for help on using the changeset viewer.