Skip to content

Commit 2136e85

Browse files
committed
feat(location): add more test
1 parent ecbb91a commit 2136e85

File tree

12 files changed

+258
-183
lines changed

12 files changed

+258
-183
lines changed

.idea/workspace.xml

Lines changed: 127 additions & 138 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 Bytes
Binary file not shown.
168 Bytes
Binary file not shown.
349 KB
Binary file not shown.
21 KB
Binary file not shown.

app/roll.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ class Pickroll extends Component {
8181
this._move(marginValue);
8282
this.index = index;
8383
this._onValueChange();
84-
}
84+
}else{ return "you are moving"}
8585
}
8686

8787
_handlePanResponderMove(evt, gestureState){
8888
let dy = gestureState.dy;
8989
if(this.isMoving) {
90-
return;
90+
return "you are moving";
9191
}
9292
// turn down
9393
if(dy > 0) {

app/roll2.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ class CPickroll extends Component {
8181
this._move(marginValue);
8282
this.index = index;
8383
this._onValueChange();
84-
}
84+
}else{ return "you are moving"}
8585
}
8686

8787
_handlePanResponderMove(evt, gestureState){
8888
let dy = gestureState.dy;
8989
if(this.isMoving) {
90-
return;
90+
return "you are moving";
9191
}
9292
// turn down
9393
if(dy > 0) {
@@ -192,8 +192,6 @@ class CPickroll extends Component {
192192
</View>
193193
</View>
194194
</View>
195-
196-
197195
);
198196
}
199197
}

app/setup3.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ class TMPicker extends Component {
105105
}
106106
str = '';
107107
return {"valueCount":valueCount,"indexCount":indexCount};
108+
}else{
109+
return "it's disabled"
108110
}
109111
}
110112
_setModalVisible(visible,type) {
@@ -178,6 +180,7 @@ class TMPicker extends Component {
178180
<PickRoll
179181
key = {index}
180182
style = {{flex:1}}
183+
className = {"test"+index}
181184
selectIndex = {this.state.selectIndex[index]}
182185
selectedValue={this.state.selectedValue[index]}
183186
pickerStyle = {{flex:1}}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"eslint": "^2.10.2",
3838
"eslint-plugin-react": "^5.1.1",
3939
"ghooks": "^1.2.1",
40-
"istanbul": "^0.4.3",
40+
"istanbul": "^1.0.0-alpha.2",
4141
"jsdom": "^9.2.1",
4242
"mocha": "^2.5.3",
4343
"react": "15.0.2",

test/fork.test.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)