diff --git a/ADFiOSReferenceApp/ADFBaseViewController.h b/ADFiOSReferenceApp/ADFBaseViewController.h index 0d333e4..92632d1 100644 --- a/ADFiOSReferenceApp/ADFBaseViewController.h +++ b/ADFiOSReferenceApp/ADFBaseViewController.h @@ -19,7 +19,7 @@ /** * A base controller for the view controllers within the app. * - * Contains app specific defaults and convienience methods + * Contains app specific defaults and convenience methods */ @interface ADFBaseViewController : UIViewController -(id)initWithTitle:(NSString*)title andImage:(UIImage*)image; diff --git a/ADFiOSReferenceApp/ADFBaseViewController.m b/ADFiOSReferenceApp/ADFBaseViewController.m index cf53e03..b45de7b 100644 --- a/ADFiOSReferenceApp/ADFBaseViewController.m +++ b/ADFiOSReferenceApp/ADFBaseViewController.m @@ -27,7 +27,7 @@ /** * A base controller for the view controllers within the app. * - * Contains app specific defaults and convienience methods + * Contains app specific defaults and convenience methods */ @implementation ADFBaseViewController @@ -81,7 +81,7 @@ -(void)centerViewByWidth:(UIView*)givenView{ } /** - * Positions the view by centering vertially + * Positions the view by centering vertically * * @param givenView the view to position */ @@ -113,7 +113,7 @@ -(void)putView:(UIView*)bottom belowView:(UIView*)topView withPadding:(CGFloat)p } /** - * A convienience method so that the frame can be created with a point and size instead of CGRectMake + * A convenience method so that the frame can be created with a point and size instead of CGRectMake * * @param point the point of the frame * @param frameSize the size of the frame diff --git a/ADFiOSReferenceApp/CustomWebSitePickerViewController.m b/ADFiOSReferenceApp/CustomWebSitePickerViewController.m index 01cfdfb..73a6e47 100644 --- a/ADFiOSReferenceApp/CustomWebSitePickerViewController.m +++ b/ADFiOSReferenceApp/CustomWebSitePickerViewController.m @@ -26,9 +26,9 @@ @interface CustomWebSitePickerViewController () @end static NSString* const FAULTY_URL_ERROR_MESSAGE_TITLE = @"Faulty URL Entered"; -static NSString* const FAULTY_URL_ERROR_MESSAGE_MESSAGE = @"The url that you inputed: %@ is not in the right format. Please put in a url with the correct format. For example http://www.amazon.com"; +static NSString* const FAULTY_URL_ERROR_MESSAGE_MESSAGE = @"The url that you input: %@ is not in the right format. Please put in a url with the correct format. For example http://www.amazon.com"; static NSString* const ALERT_CANCEL_BUTTON_TITLE = @"OK"; -static NSString* const SUBMIT_BUTTON_TTITLE = @"Go"; +static NSString* const SUBMIT_BUTTON_TITLE = @"Go"; static NSString* const TEXT_FIELD_PLACE_HOLDER_WEBSITE = @"http://www.amazon.com"; static NSString* const TEXT_FIELD_ACCESSIBILITY_LABEL = @"navigation bar"; static NSString* const NAVIGATION_TITLE = @"Input a website"; @@ -73,7 +73,7 @@ -(void)configureComponents{ _urlInputTextField.autocorrectionType = UITextAutocorrectionTypeNo; [_urlInputTextField addTarget:self action:@selector(goButtonPressed:) forControlEvents:UIControlEventEditingDidEndOnExit]; - [_goButton setTitle:SUBMIT_BUTTON_TTITLE forState:UIControlStateNormal]; + [_goButton setTitle:SUBMIT_BUTTON_TITLE forState:UIControlStateNormal]; _goButton.titleLabel.textAlignment = NSTextAlignmentCenter; _goButton.titleLabel.font = [UIFont largeFont]; _goButton.backgroundColor = [UIColor flatLightBlue]; @@ -92,7 +92,7 @@ -(void)displayComponents{ } /** - * Goes to the enterned url + * Goes to the entered url * * @param sender the go button */ diff --git a/ADFiOSReferenceApp/GesturesViewController.m b/ADFiOSReferenceApp/GesturesViewController.m index 9cf44c1..e113986 100644 --- a/ADFiOSReferenceApp/GesturesViewController.m +++ b/ADFiOSReferenceApp/GesturesViewController.m @@ -91,7 +91,7 @@ -(IBAction)handlePanGesture:(UIPanGestureRecognizer*)recognizer { /** * Action for the pinch gesture. Scales the image based on touch. * - * @param recognizer the gesture regonizer. + * @param recognizer the gesture recognizer. */ -(IBAction)handlePinchGesture:(UIPinchGestureRecognizer*)recognizer { recognizer.view.transform = CGAffineTransformScale(recognizer.view.transform, recognizer.scale, recognizer.scale); diff --git a/ADFiOSReferenceApp/ScrollOutOfViewViewController.m b/ADFiOSReferenceApp/ScrollOutOfViewViewController.m index 4a95075..08de822 100644 --- a/ADFiOSReferenceApp/ScrollOutOfViewViewController.m +++ b/ADFiOSReferenceApp/ScrollOutOfViewViewController.m @@ -19,7 +19,7 @@ @interface ScrollOutOfViewViewController () @property UILabel *label; @end -static NSString* const HIDDENT_TEXT = @"This is hidden text"; +static NSString* const HIDDEN_TEXT = @"This is hidden text"; /** * Scroll out of view view controller @@ -36,7 +36,7 @@ - (void)viewDidLoad { */ -(void)setUpView{ _label = [[UILabel alloc] initWithFrame:CGRectMake(0, self.view.frame.size.height * 2, 0, 0)]; - _label.text = HIDDENT_TEXT; + _label.text = HIDDEN_TEXT; [_label sizeToFit]; UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:self.view.frame]; diff --git a/ADFiOSReferenceApp/SubmitButtonViewController.m b/ADFiOSReferenceApp/SubmitButtonViewController.m index 54dfbde..f5dc5b2 100644 --- a/ADFiOSReferenceApp/SubmitButtonViewController.m +++ b/ADFiOSReferenceApp/SubmitButtonViewController.m @@ -50,7 +50,7 @@ -(void)submitButtonPressed:(UIButton*)sender{ } /** - * Changes the button's color to origional when released + * Changes the button's color to original when released * * @param sender the button */ diff --git a/ADFiOSReferenceApp/UIColor+ColorExtension.h b/ADFiOSReferenceApp/UIColor+ColorExtension.h index e5d37a8..35cb40d 100644 --- a/ADFiOSReferenceApp/UIColor+ColorExtension.h +++ b/ADFiOSReferenceApp/UIColor+ColorExtension.h @@ -16,7 +16,7 @@ #import /** - * A convience class that returns app specific colours + * A convenience class that returns app specific colours */ @interface UIColor (ColorExtension) + (UIColor*)flatOrange; diff --git a/ADFiOSReferenceApp/UIColor+ColorExtension.m b/ADFiOSReferenceApp/UIColor+ColorExtension.m index c80b3a5..5bdaf41 100644 --- a/ADFiOSReferenceApp/UIColor+ColorExtension.m +++ b/ADFiOSReferenceApp/UIColor+ColorExtension.m @@ -16,7 +16,7 @@ #import "UIColor+ColorExtension.h" /** - * A convience class that returns app specific colours + * A convenience class that returns app specific colours */ @implementation UIColor (ColorExtension) + (UIColor*)flatOrange { diff --git a/ADFiOSReferenceApp/WebViewController.m b/ADFiOSReferenceApp/WebViewController.m index c6c9c17..19a0706 100644 --- a/ADFiOSReferenceApp/WebViewController.m +++ b/ADFiOSReferenceApp/WebViewController.m @@ -144,7 +144,7 @@ - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error { } /** - * Sets the accessibility for the webview to loaded if the webview succeded (used for testing) + * Sets the accessibility for the webview to loaded if the webview succeeded (used for testing) * * @param webView the webview */ diff --git a/README.md b/README.md index 1657330..3ab6836 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ This is a sample native iOS app that contains many of the stock iOS components a You can use this app and example test suite as a reference for your own Device Farm tests. ##### **Notes** -All of the views are programatically created within the app. Storyboard or XIB files are not used. This is to prevent merge conflicts in the future. +All of the views are programmatically created within the app. Storyboard or XIB files are not used. This is to prevent merge conflicts in the future. Explicit delays are occasionally added to the tests to allow the page to fully render, they are commented as such in the code. @@ -111,4 +111,4 @@ XCTAssertNotNil(app.staticTexts["This is a modal view"]) 12. To run the tests go to Product —> Test. This will open up the simulator and run the tests. 13. We want to package and upload these tests to Device Farm to test it against a number of devices.
To package the tests go to your Project explorer on the left hand side. Right click on AWSDeviceFarmiOSReferenceApp under Products folder —> Show in Finder. This will take to the location of your app and tests build output. Look for the runner app of your tests: AWSDeviceFarmiOSReferenceAppUITests_Mock-Runner. Create a folder named “Payload” case-sensitive anywhere in your file system. Copy the tests runner app inside Payload. Right click on Payload —> Compress Payload. Rename the extensions of the compressed zip file to .ipa. When asked if you want to keep .ipa option choose yes. This is your test IPA that can be uploaded to AWS Device Farm. -14. You can build an IPA of the app using your developer account or a pre-built version of the app and tests can be found [here](https://s3.console.aws.amazon.com/s3/buckets/prebuiltappsreinvent2017/). +14. You can build an IPA of the app using your developer account or use [a pre-built version of the app and tests](https://s3.console.aws.amazon.com/s3/buckets/prebuiltappsreinvent2017/). diff --git a/calabash.framework/Headers/LPHTTPAsyncFileResponse.h b/calabash.framework/Headers/LPHTTPAsyncFileResponse.h index ddae251..9f21e81 100644 --- a/calabash.framework/Headers/LPHTTPAsyncFileResponse.h +++ b/calabash.framework/Headers/LPHTTPAsyncFileResponse.h @@ -7,7 +7,7 @@ * This is an asynchronous version of LPHTTPFileResponse. * It reads data from the given file asynchronously via LPGCD. * - * It may be overriden to allow custom post-processing of the data that has been read from the file. + * It may be overridden to allow custom post-processing of the data that has been read from the file. * An example of this is the LPHTTPDynamicFileResponse class. **/ @@ -51,7 +51,7 @@ * * readOffset * Represents the offset of the file descriptor. - * In other words, the file position indidcator for our read stream. + * In other words, the file position indicator for our read stream. * It might be easy to think of it as the total number of bytes that have been read from the file. * However, this isn't entirely accurate, as the setOffset: method may have caused us to * jump ahead in the file (lseek). @@ -71,5 +71,5 @@ * It's NOT OK if we return a greater number of bytes to the connection. * Doing so would disrupt proper support for range requests. * If, however, the response is chunked then we don't need to worry about this. - * Chunked responses inheritly don't support range requests. + * Chunked responses inherently don't support range requests. **/ \ No newline at end of file diff --git a/calabash.framework/Headers/LPHTTPResponse.h b/calabash.framework/Headers/LPHTTPResponse.h index a125018..515fdf9 100644 --- a/calabash.framework/Headers/LPHTTPResponse.h +++ b/calabash.framework/Headers/LPHTTPResponse.h @@ -53,7 +53,7 @@ * * Important: You should read the discussion at the bottom of this header. **/ -- (BOOL)delayResponeHeaders; +- (BOOL)delayResponseHeaders; /** * Status code for response. @@ -96,7 +96,7 @@ * each chunk. Please see the LPHTTPAsyncFileResponse class for an example of how to do this. * * The normal flow of events for an LPHTTPConnection while responding to a request is like this: - * - Send http resopnse headers + * - Send http response headers * - Get data from response via readDataOfLength method. * - Add data to asyncSocket's write queue. * - Wait for asyncSocket to notify it that the data has been sent. diff --git a/calabash.framework/Versions/0.13.0/Headers/LPHTTPAsyncFileResponse.h b/calabash.framework/Versions/0.13.0/Headers/LPHTTPAsyncFileResponse.h index ddae251..9f21e81 100644 --- a/calabash.framework/Versions/0.13.0/Headers/LPHTTPAsyncFileResponse.h +++ b/calabash.framework/Versions/0.13.0/Headers/LPHTTPAsyncFileResponse.h @@ -7,7 +7,7 @@ * This is an asynchronous version of LPHTTPFileResponse. * It reads data from the given file asynchronously via LPGCD. * - * It may be overriden to allow custom post-processing of the data that has been read from the file. + * It may be overridden to allow custom post-processing of the data that has been read from the file. * An example of this is the LPHTTPDynamicFileResponse class. **/ @@ -51,7 +51,7 @@ * * readOffset * Represents the offset of the file descriptor. - * In other words, the file position indidcator for our read stream. + * In other words, the file position indicator for our read stream. * It might be easy to think of it as the total number of bytes that have been read from the file. * However, this isn't entirely accurate, as the setOffset: method may have caused us to * jump ahead in the file (lseek). @@ -71,5 +71,5 @@ * It's NOT OK if we return a greater number of bytes to the connection. * Doing so would disrupt proper support for range requests. * If, however, the response is chunked then we don't need to worry about this. - * Chunked responses inheritly don't support range requests. + * Chunked responses inherently don't support range requests. **/ \ No newline at end of file diff --git a/calabash.framework/Versions/0.13.0/Headers/LPHTTPResponse.h b/calabash.framework/Versions/0.13.0/Headers/LPHTTPResponse.h index a125018..515fdf9 100644 --- a/calabash.framework/Versions/0.13.0/Headers/LPHTTPResponse.h +++ b/calabash.framework/Versions/0.13.0/Headers/LPHTTPResponse.h @@ -53,7 +53,7 @@ * * Important: You should read the discussion at the bottom of this header. **/ -- (BOOL)delayResponeHeaders; +- (BOOL)delayResponseHeaders; /** * Status code for response. @@ -96,7 +96,7 @@ * each chunk. Please see the LPHTTPAsyncFileResponse class for an example of how to do this. * * The normal flow of events for an LPHTTPConnection while responding to a request is like this: - * - Send http resopnse headers + * - Send http response headers * - Get data from response via readDataOfLength method. * - Add data to asyncSocket's write queue. * - Wait for asyncSocket to notify it that the data has been sent. diff --git a/calabash.framework/Versions/A/Headers/LPHTTPAsyncFileResponse.h b/calabash.framework/Versions/A/Headers/LPHTTPAsyncFileResponse.h index ddae251..9f21e81 100644 --- a/calabash.framework/Versions/A/Headers/LPHTTPAsyncFileResponse.h +++ b/calabash.framework/Versions/A/Headers/LPHTTPAsyncFileResponse.h @@ -7,7 +7,7 @@ * This is an asynchronous version of LPHTTPFileResponse. * It reads data from the given file asynchronously via LPGCD. * - * It may be overriden to allow custom post-processing of the data that has been read from the file. + * It may be overridden to allow custom post-processing of the data that has been read from the file. * An example of this is the LPHTTPDynamicFileResponse class. **/ @@ -51,7 +51,7 @@ * * readOffset * Represents the offset of the file descriptor. - * In other words, the file position indidcator for our read stream. + * In other words, the file position indicator for our read stream. * It might be easy to think of it as the total number of bytes that have been read from the file. * However, this isn't entirely accurate, as the setOffset: method may have caused us to * jump ahead in the file (lseek). @@ -71,5 +71,5 @@ * It's NOT OK if we return a greater number of bytes to the connection. * Doing so would disrupt proper support for range requests. * If, however, the response is chunked then we don't need to worry about this. - * Chunked responses inheritly don't support range requests. + * Chunked responses inherently don't support range requests. **/ \ No newline at end of file diff --git a/calabash.framework/Versions/A/Headers/LPHTTPResponse.h b/calabash.framework/Versions/A/Headers/LPHTTPResponse.h index a125018..515fdf9 100644 --- a/calabash.framework/Versions/A/Headers/LPHTTPResponse.h +++ b/calabash.framework/Versions/A/Headers/LPHTTPResponse.h @@ -53,7 +53,7 @@ * * Important: You should read the discussion at the bottom of this header. **/ -- (BOOL)delayResponeHeaders; +- (BOOL)delayResponseHeaders; /** * Status code for response. @@ -96,7 +96,7 @@ * each chunk. Please see the LPHTTPAsyncFileResponse class for an example of how to do this. * * The normal flow of events for an LPHTTPConnection while responding to a request is like this: - * - Send http resopnse headers + * - Send http response headers * - Get data from response via readDataOfLength method. * - Add data to asyncSocket's write queue. * - Wait for asyncSocket to notify it that the data has been sent. diff --git a/calabash.framework/Versions/Current/Headers/LPHTTPAsyncFileResponse.h b/calabash.framework/Versions/Current/Headers/LPHTTPAsyncFileResponse.h index ddae251..9f21e81 100644 --- a/calabash.framework/Versions/Current/Headers/LPHTTPAsyncFileResponse.h +++ b/calabash.framework/Versions/Current/Headers/LPHTTPAsyncFileResponse.h @@ -7,7 +7,7 @@ * This is an asynchronous version of LPHTTPFileResponse. * It reads data from the given file asynchronously via LPGCD. * - * It may be overriden to allow custom post-processing of the data that has been read from the file. + * It may be overridden to allow custom post-processing of the data that has been read from the file. * An example of this is the LPHTTPDynamicFileResponse class. **/ @@ -51,7 +51,7 @@ * * readOffset * Represents the offset of the file descriptor. - * In other words, the file position indidcator for our read stream. + * In other words, the file position indicator for our read stream. * It might be easy to think of it as the total number of bytes that have been read from the file. * However, this isn't entirely accurate, as the setOffset: method may have caused us to * jump ahead in the file (lseek). @@ -71,5 +71,5 @@ * It's NOT OK if we return a greater number of bytes to the connection. * Doing so would disrupt proper support for range requests. * If, however, the response is chunked then we don't need to worry about this. - * Chunked responses inheritly don't support range requests. + * Chunked responses inherently don't support range requests. **/ \ No newline at end of file diff --git a/calabash.framework/Versions/Current/Headers/LPHTTPResponse.h b/calabash.framework/Versions/Current/Headers/LPHTTPResponse.h index a125018..515fdf9 100644 --- a/calabash.framework/Versions/Current/Headers/LPHTTPResponse.h +++ b/calabash.framework/Versions/Current/Headers/LPHTTPResponse.h @@ -53,7 +53,7 @@ * * Important: You should read the discussion at the bottom of this header. **/ -- (BOOL)delayResponeHeaders; +- (BOOL)delayResponseHeaders; /** * Status code for response. @@ -96,7 +96,7 @@ * each chunk. Please see the LPHTTPAsyncFileResponse class for an example of how to do this. * * The normal flow of events for an LPHTTPConnection while responding to a request is like this: - * - Send http resopnse headers + * - Send http response headers * - Get data from response via readDataOfLength method. * - Add data to asyncSocket's write queue. * - Wait for asyncSocket to notify it that the data has been sent. diff --git a/features/ios/pages/nested_view_page.rb b/features/ios/pages/nested_view_page.rb index e30d154..37d9ac5 100644 --- a/features/ios/pages/nested_view_page.rb +++ b/features/ios/pages/nested_view_page.rb @@ -28,7 +28,7 @@ def press_back_button_times(number_times) touch ("UILabel text:'Back'") end - # Presses the next level back button a a specific amount of times + # Presses the next level back button a specific amount of times def press_next_level_button(number_times) puts("Custom") number_times.to_i.times do