Skip to content

Commit bc4d9c9

Browse files
Multiple http/wpt/beacon/contentextensions/ test are flaky.
https://bugs.webkit.org/show_bug.cgi?id=179256 <rdar://problem/35401978> Reviewed by Alex Christensen. Tools: Update WebKitTestRunner to set a temporary path for content extensions so that its WKTR instance gets its own folder to avoid conflicts and flakiness. * WebKitTestRunner/mac/TestControllerMac.mm: (WTR::TestController::platformConfigureViewForTest): LayoutTests: Stop marking content extensions tests as flaky. * platform/mac-wk2/TestExpectations: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@226751 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent d629a73 commit bc4d9c9

File tree

4 files changed

+40
-4
lines changed

4 files changed

+40
-4
lines changed

LayoutTests/ChangeLog

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
2018-01-10 Chris Dumez <[email protected]>
2+
3+
Multiple http/wpt/beacon/contentextensions/ test are flaky.
4+
https://bugs.webkit.org/show_bug.cgi?id=179256
5+
<rdar://problem/35401978>
6+
7+
Reviewed by Alex Christensen.
8+
9+
Stop marking content extensions tests as flaky.
10+
11+
* platform/mac-wk2/TestExpectations:
12+
113
2018-01-10 Tim Horton <[email protected]>
214

315
REGRESSION (r213590): Swipe from edge to go to previous page is significantly slower than tapping back button on Twitter

LayoutTests/platform/mac-wk2/TestExpectations

+5-3
Original file line numberDiff line numberDiff line change
@@ -525,10 +525,12 @@ webkit.org/b/141085 http/tests/media/video-query-url.html [ Pass Timeout ]
525525
########################################
526526

527527
# Content Extensions tests must be enabled explicitly on mac-wk2.
528-
http/tests/contentextensions [ Pass Failure ]
529-
http/tests/websocket/tests/hybi/contentextensions [ Pass Failure ]
528+
http/tests/contentextensions [ Pass ]
529+
http/tests/websocket/tests/hybi/contentextensions [ Pass ]
530+
[ Sierra+ ] http/wpt/beacon/contentextensions [ Pass ]
531+
532+
# The following tests are flaky.
530533
webkit.org/b/179557 http/tests/websocket/tests/hybi/contentextensions/upgrade-worker.html [ Pass Failure ]
531-
webkit.org/b/179256 [ Sierra+ ] http/wpt/beacon/contentextensions [ Pass Failure ]
532534
webkit.org/b/168081 http/tests/contentextensions/async-xhr-onerror.html [ Pass Timeout ]
533535
webkit.org/b/146400 http/tests/contentextensions/character-set-basic-support.html [ Pass Failure ]
534536
webkit.org/b/168082 [ Sierra ] http/tests/contentextensions/invalid-selector.html [ Pass ImageOnlyFailure ]

Tools/ChangeLog

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
2018-01-10 Chris Dumez <[email protected]>
2+
3+
Multiple http/wpt/beacon/contentextensions/ test are flaky.
4+
https://bugs.webkit.org/show_bug.cgi?id=179256
5+
<rdar://problem/35401978>
6+
7+
Reviewed by Alex Christensen.
8+
9+
Update WebKitTestRunner to set a temporary path for content extensions so that its WKTR
10+
instance gets its own folder to avoid conflicts and flakiness.
11+
12+
* WebKitTestRunner/mac/TestControllerMac.mm:
13+
(WTR::TestController::platformConfigureViewForTest):
14+
115
2018-01-10 Tim Horton <[email protected]>
216

317
REGRESSION (r213590): Swipe from edge to go to previous page is significantly slower than tapping back button on Twitter

Tools/WebKitTestRunner/mac/TestControllerMac.mm

+9-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,15 @@ static PlatformWindow wtr_NSApplication_keyWindow(id self, SEL _cmd)
133133
return;
134134

135135
__block bool doneCompiling = false;
136-
[[_WKUserContentExtensionStore defaultStore] compileContentExtensionForIdentifier:@"TestContentExtensions" encodedContentExtension:contentExtensionString completionHandler:^(_WKUserContentFilter *filter, NSError *error)
136+
137+
NSURL *tempDir;
138+
if (const char* dumpRenderTreeTemp = libraryPathForTesting()) {
139+
String temporaryFolder = String::fromUTF8(dumpRenderTreeTemp);
140+
tempDir = [NSURL fileURLWithPath:[(NSString*)temporaryFolder stringByAppendingPathComponent:@"ContentExtensions"] isDirectory:YES];
141+
} else
142+
tempDir = [NSURL fileURLWithPath:[NSTemporaryDirectory() stringByAppendingPathComponent:@"ContentExtensions"] isDirectory:YES];
143+
144+
[[_WKUserContentExtensionStore storeWithURL:tempDir] compileContentExtensionForIdentifier:@"TestContentExtensions" encodedContentExtension:contentExtensionString completionHandler:^(_WKUserContentFilter *filter, NSError *error)
137145
{
138146
if (!error)
139147
[mainWebView()->platformView().configuration.userContentController _addUserContentFilter:filter];

0 commit comments

Comments
 (0)