| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import <EarlGrey/EarlGrey.h> | 5 #import <EarlGrey/EarlGrey.h> |
| 6 | 6 |
| 7 #include "base/test/ios/wait_util.h" | 7 #include "base/test/ios/wait_util.h" |
| 8 #include "ios/testing/earl_grey/wait_util.h" | 8 #include "ios/testing/earl_grey/wait_util.h" |
| 9 #import "ios/web/public/test/earl_grey/web_view_matchers.h" | 9 #import "ios/web/public/test/earl_grey/web_view_matchers.h" |
| 10 #import "ios/web/public/test/http_server.h" | 10 #import "ios/web/public/test/http_server.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 descriptionBlock:describe], | 50 descriptionBlock:describe], |
| 51 nil); | 51 nil); |
| 52 } | 52 } |
| 53 | 53 |
| 54 } // namespace | 54 } // namespace |
| 55 | 55 |
| 56 using web::shell_test_util::LoadUrl; | 56 using web::shell_test_util::LoadUrl; |
| 57 using web::test::HttpServer; | 57 using web::test::HttpServer; |
| 58 | 58 |
| 59 // PDF test cases for the web shell. | 59 // PDF test cases for the web shell. |
| 60 @interface PDFTest : ShellBaseTestCase | 60 @interface PDFTestCase : ShellBaseTestCase |
| 61 @end | 61 @end |
| 62 | 62 |
| 63 @implementation PDFTest | 63 @implementation PDFTestCase |
| 64 | 64 |
| 65 // Tests MIME type of the loaded PDF document. | 65 // Tests MIME type of the loaded PDF document. |
| 66 - (void)testMIMEType { | 66 - (void)testMIMEType { |
| 67 web::test::SetUpFileBasedHttpServer(); | 67 web::test::SetUpFileBasedHttpServer(); |
| 68 LoadUrl(HttpServer::MakeUrl(kTestPDFURL)); | 68 LoadUrl(HttpServer::MakeUrl(kTestPDFURL)); |
| 69 [[EarlGrey selectElementWithMatcher:webViewWithPdf()] | 69 [[EarlGrey selectElementWithMatcher:webViewWithPdf()] |
| 70 assertWithMatcher:grey_notNil()]; | 70 assertWithMatcher:grey_notNil()]; |
| 71 } | 71 } |
| 72 | 72 |
| 73 @end | 73 @end |
| OLD | NEW |