17 |
18 | #endif /* bridge_h */
19 |
20 |
--------------------------------------------------------------------------------
/iOSLoadWebviewImageSwift/iOSLoadWebviewImage/test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Test ios native load webview's image'
6 |
11 |
12 |
13 | Test how to use ios native code to load webview's image and set the image to webview
14 |
15 |
Here has two image urls. We will try to request this two image with ios but not html
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/iOSLoadWebviewImageSwift/iOSLoadWebviewImageTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/iOSLoadWebviewImageSwift/iOSLoadWebviewImageTests/iOSLoadWebviewImageTests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // iOSLoadWebviewImageTests.swift
3 | // iOSLoadWebviewImageTests
4 | //
5 | // Created by huangyibiao on 15/10/15.
6 | // Copyright © 2015年 huangyibiao. All rights reserved.
7 | //
8 |
9 | import XCTest
10 | @testable import iOSLoadWebviewImage
11 |
12 | class iOSLoadWebviewImageTests: XCTestCase {
13 |
14 | override func setUp() {
15 | super.setUp()
16 | // Put setup code here. This method is called before the invocation of each test method in the class.
17 | }
18 |
19 | override func tearDown() {
20 | // Put teardown code here. This method is called after the invocation of each test method in the class.
21 | super.tearDown()
22 | }
23 |
24 | func testExample() {
25 | // This is an example of a functional test case.
26 | // Use XCTAssert and related functions to verify your tests produce the correct results.
27 | }
28 |
29 | func testPerformanceExample() {
30 | // This is an example of a performance test case.
31 | self.measureBlock {
32 | // Put the code you want to measure the time of here.
33 | }
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/iOSLoadWebviewImageSwift/iOSLoadWebviewImageUITests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/iOSLoadWebviewImageSwift/iOSLoadWebviewImageUITests/iOSLoadWebviewImageUITests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // iOSLoadWebviewImageUITests.swift
3 | // iOSLoadWebviewImageUITests
4 | //
5 | // Created by huangyibiao on 15/10/15.
6 | // Copyright © 2015年 huangyibiao. All rights reserved.
7 | //
8 |
9 | import XCTest
10 |
11 | class iOSLoadWebviewImageUITests: XCTestCase {
12 |
13 | override func setUp() {
14 | super.setUp()
15 |
16 | // Put setup code here. This method is called before the invocation of each test method in the class.
17 |
18 | // In UI tests it is usually best to stop immediately when a failure occurs.
19 | continueAfterFailure = false
20 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
21 | XCUIApplication().launch()
22 |
23 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
24 | }
25 |
26 | override func tearDown() {
27 | // Put teardown code here. This method is called after the invocation of each test method in the class.
28 | super.tearDown()
29 | }
30 |
31 | func testExample() {
32 | // Use recording to get started writing UI tests.
33 | // Use XCTAssert and related functions to verify your tests produce the correct results.
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/iOSLoadWebviewImageSwift/test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Test ios native load webview's image'
6 |
7 |
8 | Test how to use ios native code to load webview's image and set the image to webview
9 |
10 |
Here has two image urls. We will try to request this two image with ios but not html
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------