You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2017/08/24 07:17:07 UTC
[2/4] incubator-weex git commit: Revert "* [test] fix iOS"
Revert "* [test] fix iOS"
This reverts commit 8178f60604400351b5f9ce5a46a2291112724184.
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/4fd6bd39
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/4fd6bd39
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/4fd6bd39
Branch: refs/heads/0.16-dev
Commit: 4fd6bd390e8ef0f51fedae697a9d2d9471a500da
Parents: 8178f60
Author: gurisxie <27...@qq.com>
Authored: Thu Aug 24 14:30:40 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Thu Aug 24 14:30:40 2017 +0800
----------------------------------------------------------------------
ios/playground/WeexDemoTests/Info.plist | 28 ++++++
.../WeexDemoTests/WXFloatCompareTests.m | 93 --------------------
ios/playground/WeexDemoTests/WeexDemoTests.m | 50 +++++++++++
test/run.sh | 2 +-
4 files changed, 79 insertions(+), 94 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/4fd6bd39/ios/playground/WeexDemoTests/Info.plist
----------------------------------------------------------------------
diff --git a/ios/playground/WeexDemoTests/Info.plist b/ios/playground/WeexDemoTests/Info.plist
new file mode 100644
index 0000000..57c21c9
--- /dev/null
+++ b/ios/playground/WeexDemoTests/Info.plist
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>NSLocationWhenInUseUsageDescription</key>
+ <string>$(PRODUCT_NAME) will access your location</string>
+ <key>NSCameraUsageDescription</key>
+ <string>$(PRODUCT_NAME) will access your camera</string>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleExecutable</key>
+ <string>$(EXECUTABLE_NAME)</string>
+ <key>CFBundleIdentifier</key>
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>$(PRODUCT_NAME)</string>
+ <key>CFBundlePackageType</key>
+ <string>BNDL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+</dict>
+</plist>
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/4fd6bd39/ios/playground/WeexDemoTests/WXFloatCompareTests.m
----------------------------------------------------------------------
diff --git a/ios/playground/WeexDemoTests/WXFloatCompareTests.m b/ios/playground/WeexDemoTests/WXFloatCompareTests.m
deleted file mode 100644
index 261699b..0000000
--- a/ios/playground/WeexDemoTests/WXFloatCompareTests.m
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#import <XCTest/XCTest.h>
-#import "WXUtility.h"
-
-@interface WXFloatCompareTests : XCTestCase
-
-@end
-
-@implementation WXFloatCompareTests
-
-- (void)setUp {
- [super setUp];
- // Put setup code here. This method is called before the invocation of each test method in the class.
-}
-
-- (void)tearDown {
- // Put teardown code here. This method is called after the invocation of each test method in the class.
- [super tearDown];
-}
-
-- (void)testWXFloatEqual {
- // This is an example of a functional test case.
- // Use XCTAssert and related functions to verify your tests produce the correct results.
- float a = 0.1;
- double b = 0.1;
- BOOL boolval = WXFloatEqual(a, b);
- XCTAssertTrue(boolval);
-}
-
-- (void)testWXFloatEqualWithPrecision {
- // This is an example of a functional test case.
- // Use XCTAssert and related functions to verify your tests produce the correct results.
- float a = 0.1;
- double b = 0.1;
- BOOL boolval = WXFloatEqualWithPrecision(a, b , 0.01);
- XCTAssertTrue(boolval);
-}
-
-- (void)testWXFloatLessThan {
- // This is an example of a functional test case.
- // Use XCTAssert and related functions to verify your tests produce the correct results.
- float a = 0.1;
- double b = 0.2;
- BOOL boolval = WXFloatLessThan(a, b);
- XCTAssertTrue(boolval);
-}
-
-- (void)testWXFloatLessThanWithPrecision {
- // This is an example of a functional test case.
- // Use XCTAssert and related functions to verify your tests produce the correct results.
- float a = 0.1;
- double b = 0.2;
- BOOL boolval = WXFloatLessThanWithPrecision(a, b, 0.01);
- XCTAssertTrue(boolval);
-}
-
-- (void)testWXFloatGreaterThan {
- // This is an example of a functional test case.
- // Use XCTAssert and related functions to verify your tests produce the correct results.
- float a = 0.2;
- double b = 0.1;
- BOOL boolval = WXFloatGreaterThan(a, b);
- XCTAssertTrue(boolval);
-}
-
-- (void)testWXFloatGreaterThanWithPrecision {
- // This is an example of a functional test case.
- // Use XCTAssert and related functions to verify your tests produce the correct results.
- float a = 0.2;
- double b = 0.1;
- BOOL boolval = WXFloatGreaterThanWithPrecision(a, b,0.01);
- XCTAssertTrue(boolval);
-}
-
-@end
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/4fd6bd39/ios/playground/WeexDemoTests/WeexDemoTests.m
----------------------------------------------------------------------
diff --git a/ios/playground/WeexDemoTests/WeexDemoTests.m b/ios/playground/WeexDemoTests/WeexDemoTests.m
new file mode 100644
index 0000000..c143038
--- /dev/null
+++ b/ios/playground/WeexDemoTests/WeexDemoTests.m
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#import <XCTest/XCTest.h>
+
+@interface WeexDemoTests : XCTestCase
+
+@end
+
+@implementation WeexDemoTests
+
+- (void)setUp {
+ [super setUp];
+ // Put setup code here. This method is called before the invocation of each test method in the class.
+}
+
+- (void)tearDown {
+ // Put teardown code here. This method is called after the invocation of each test method in the class.
+ [super tearDown];
+}
+
+- (void)testExample {
+ // This is an example of a functional test case.
+ // Use XCTAssert and related functions to verify your tests produce the correct results.
+}
+
+- (void)testPerformanceExample {
+ // This is an example of a performance test case.
+ [self measureBlock:^{
+ // Put the code you want to measure the time of here.
+ }];
+}
+
+@end
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/4fd6bd39/test/run.sh
----------------------------------------------------------------------
diff --git a/test/run.sh b/test/run.sh
index bc343a6..4fdcbb2 100755
--- a/test/run.sh
+++ b/test/run.sh
@@ -52,7 +52,7 @@ function buildiOS {
function runiOS {
echo 'Run in iOS...'
echo $1
- buildiOS $2
+ # buildiOS $2
echo 'killAll Simulator......'
killAll Simulator || echo 'killall failed'
# ps -ef