RESOLVED FIXED145012
Add internals setting to disable wireless playback availability for layout tests
https://bugs.webkit.org/show_bug.cgi?id=145012
Summary Add internals setting to disable wireless playback availability for layout tests
Roger Fong
Reported 2015-05-14 11:59:31 PDT
Attachments
patch (5.43 KB, patch)
2015-05-14 12:04 PDT, Roger Fong
no flags
patch (3.06 KB, patch)
2015-05-14 12:20 PDT, Roger Fong
no flags
patch (3.06 KB, patch)
2015-05-14 12:50 PDT, Roger Fong
eric.carlson: review+
patch (20.97 KB, patch)
2015-05-14 12:59 PDT, Roger Fong
no flags
patch (3.11 KB, patch)
2015-05-14 13:04 PDT, Roger Fong
no flags
patch (3.10 KB, patch)
2015-05-14 13:22 PDT, Roger Fong
commit-queue: commit-queue-
Roger Fong
Comment 1 2015-05-14 12:04:47 PDT
Roger Fong
Comment 2 2015-05-14 12:05:10 PDT
Doing this will allow local layout tests runs to be consistent with the bots.
Roger Fong
Comment 3 2015-05-14 12:20:41 PDT
Roger Fong
Comment 4 2015-05-14 12:50:03 PDT
Eric Carlson
Comment 5 2015-05-14 12:52:11 PDT
Comment on attachment 253132 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=253132&action=review > Source/WebCore/testing/InternalSettings.cpp:366 > + page->settings().setMediaPlaybackAllowsAirPlay(false); I assume always setting it to false is a copy/paste bug? > Source/WebCore/testing/InternalSettings.h:128 > + void setWirelessPlaybackDisabled(bool); This needs to be guarded with WIRELESS_PLAYBACK_TARGET.
Eric Carlson
Comment 6 2015-05-14 12:52:55 PDT
Comment on attachment 253136 [details] patch r=me with the fixes mentioned
Roger Fong
Comment 7 2015-05-14 12:59:26 PDT
Created attachment 253137 [details] patch patch with fixes to verify builds
WebKit Commit Bot
Comment 8 2015-05-14 13:02:25 PDT
Attachment 253137 [details] did not pass style-queue: ERROR: LayoutTests/ChangeLog:1: ChangeLog entry has no bug number [changelog/bugnumber] [5] Total errors found: 1 in 10 files If any of these errors are false positives, please file a bug against check-webkit-style.
Roger Fong
Comment 9 2015-05-14 13:04:40 PDT
Roger Fong
Comment 10 2015-05-14 13:22:14 PDT
WebKit Commit Bot
Comment 11 2015-05-14 14:04:15 PDT
Comment on attachment 253139 [details] patch Rejecting attachment 253139 [details] from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.appspot.com', '--bot-id=webkit-cq-02', 'validate-changelog', '--check-oops', '--non-interactive', 253139, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit /Volumes/Data/EWS/WebKit/Source/WebCore/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive). Full output: http://webkit-queues.appspot.com/results/5801458070978560
Roger Fong
Comment 12 2015-05-14 14:24:04 PDT
Alexey Proskuryakov
Comment 13 2015-05-14 20:22:09 PDT
Comment on attachment 253139 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=253139&action=review > Source/WebCore/testing/InternalSettings.h:128 > + void setWirelessPlaybackDisabled(bool); A more common idiom is to have a function like setWirelessPlaybackEnabled(bool), to avoid double negation, or to have a function without an argument. I think that the latter is more appropriate in this state.
Note You need to log in before you can comment on or make changes to this bug.