Add a test harness for running UI tests on the iOS Simulator
authorjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Aug 2016 23:28:59 +0000 (23:28 +0000)
committerjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Aug 2016 23:28:59 +0000 (23:28 +0000)
commit08bcdc09ee8cbecd621b79e39bc5743a9a0b849e
tree9f0bafa105c7e505e346d7f771637ac8a1df4df9
parente10a9b12bb93daa1a7334def25043410e0faacf7
Add a test harness for running UI tests on the iOS Simulator
https://bugs.webkit.org/show_bug.cgi?id=161265

.:

Add the new MobileMiniBrowser project to the WebKit workspace.

Reviewed by Simon Fraser.

* WebKit.xcworkspace/contents.xcworkspacedata:

Tools:

Reviewed by Simon Fraser.

Add a new iOS Simulator application which uses WKWebView to implement a basic browser, and which
can serve as a test harness for WebKit UI tests.

Also add a basic media playback test which verifies that a <video> element will begin playing in
fullscreen on an iPhone device, but will play inline on an iPad device.

* Makefile: Add MobileMiniBrowser as a Module for iOS builds.
* MobileMiniBrowser/Configurations/Base.xcconfig: Added.
* MobileMiniBrowser/Configurations/DebugRelease.xcconfig: Added.
* MobileMiniBrowser/Configurations/MobileMiniBrowser.xcconfig: Added.
* MobileMiniBrowser/Makefile: Added.
* MobileMiniBrowser/MobileMiniBrowser.xcodeproj/project.pbxproj: Added.
* MobileMiniBrowser/MobileMiniBrowser/AppDelegate.h: Added.
* MobileMiniBrowser/MobileMiniBrowser/AppDelegate.m: Added.
(-[AppDelegate application:didFinishLaunchingWithOptions:]):
(-[AppDelegate applicationWillResignActive:]):
(-[AppDelegate applicationDidEnterBackground:]):
(-[AppDelegate applicationWillEnterForeground:]):
(-[AppDelegate applicationDidBecomeActive:]):
(-[AppDelegate applicationWillTerminate:]):
* MobileMiniBrowser/MobileMiniBrowser/Assets.xcassets/AppIcon.appiconset/Contents.json: Added.
* MobileMiniBrowser/MobileMiniBrowser/Base.lproj/LaunchScreen.storyboard: Added.
* MobileMiniBrowser/MobileMiniBrowser/Base.lproj/Main.storyboard: Added.
* MobileMiniBrowser/MobileMiniBrowser/Info.plist: Added.
* MobileMiniBrowser/MobileMiniBrowser/TabViewController.h: Added.
* MobileMiniBrowser/MobileMiniBrowser/TabViewController.m: Added.
(-[TabViewController dealloc]):
(-[TabViewController viewDidLoad]):
(-[TabViewController observeValueForKeyPath:ofObject:change:context:]):
(-[TabViewController tableView:cellForRowAtIndexPath:]):
(-[TabViewController tableView:numberOfRowsInSection:]):
(-[TabViewController numberOfSectionsInTableView:]):
(-[TabViewController tableView:canEditRowAtIndexPath:]):
(-[TabViewController tableView:canMoveRowAtIndexPath:]):
(-[TabViewController tableView:commitEditingStyle:forRowAtIndexPath:]):
(-[TabViewController tableView:didSelectRowAtIndexPath:]):
* MobileMiniBrowser/MobileMiniBrowser/WebViewController.h: Added.
* MobileMiniBrowser/MobileMiniBrowser/WebViewController.m: Added.
(-[WebViewController viewDidLoad]):
(-[WebViewController didReceiveMemoryWarning]):
(-[WebViewController reload:]):
(-[WebViewController goBack:]):
(-[WebViewController goForward:]):
(-[WebViewController urlFieldEditingBegan:]):
(-[WebViewController navigateTo:]):
(-[WebViewController showTabs:]):
(-[WebViewController selectWebViewAtIndex:]):
(-[WebViewController removeWebViewAtIndex:]):
(-[WebViewController addWebView]):
(-[WebViewController createWebView]):
(-[WebViewController removeWebView:]):
(-[WebViewController setCurrentWebView:]):
(-[WebViewController webView:didFailNavigation:withError:]):
(-[WebViewController observeValueForKeyPath:ofObject:change:context:]):
* MobileMiniBrowser/MobileMiniBrowser/main.m: Added.
(main):
* MobileMiniBrowser/MobileMiniBrowserUITests/Info.plist: Added.
* MobileMiniBrowser/MobileMiniBrowserUITests/MobileMiniBrowserUITests.m: Added.
(-[MobileMiniBrowserUITests setUp]):
(-[MobileMiniBrowserUITests tearDown]):
(-[MobileMiniBrowserUITests testBasicVideoPlayback]):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@205057 268f45cc-cd09-0410-ab3c-d52691b4dbfc
22 files changed:
ChangeLog
Tools/ChangeLog
Tools/Makefile
Tools/MobileMiniBrowser/Configurations/Base.xcconfig [new file with mode: 0644]
Tools/MobileMiniBrowser/Configurations/DebugRelease.xcconfig [new file with mode: 0644]
Tools/MobileMiniBrowser/Configurations/MobileMiniBrowser.xcconfig [new file with mode: 0644]
Tools/MobileMiniBrowser/Makefile [new file with mode: 0644]
Tools/MobileMiniBrowser/MobileMiniBrowser.xcodeproj/project.pbxproj [new file with mode: 0644]
Tools/MobileMiniBrowser/MobileMiniBrowser/AppDelegate.h [new file with mode: 0644]
Tools/MobileMiniBrowser/MobileMiniBrowser/AppDelegate.m [new file with mode: 0644]
Tools/MobileMiniBrowser/MobileMiniBrowser/Assets.xcassets/AppIcon.appiconset/Contents.json [new file with mode: 0644]
Tools/MobileMiniBrowser/MobileMiniBrowser/Base.lproj/LaunchScreen.storyboard [new file with mode: 0644]
Tools/MobileMiniBrowser/MobileMiniBrowser/Base.lproj/Main.storyboard [new file with mode: 0644]
Tools/MobileMiniBrowser/MobileMiniBrowser/Info.plist [new file with mode: 0644]
Tools/MobileMiniBrowser/MobileMiniBrowser/TabViewController.h [new file with mode: 0644]
Tools/MobileMiniBrowser/MobileMiniBrowser/TabViewController.m [new file with mode: 0644]
Tools/MobileMiniBrowser/MobileMiniBrowser/WebViewController.h [new file with mode: 0644]
Tools/MobileMiniBrowser/MobileMiniBrowser/WebViewController.m [new file with mode: 0644]
Tools/MobileMiniBrowser/MobileMiniBrowser/main.m [new file with mode: 0644]
Tools/MobileMiniBrowser/MobileMiniBrowserUITests/Info.plist [new file with mode: 0644]
Tools/MobileMiniBrowser/MobileMiniBrowserUITests/MobileMiniBrowserUITests.m [new file with mode: 0644]
WebKit.xcworkspace/contents.xcworkspacedata