android - Remove duplicated tests file
parent
98479df619
commit
97b5bf5039
|
|
@ -1,21 +0,0 @@
|
||||||
{
|
|
||||||
"app" : "android",
|
|
||||||
"tests" : [ {
|
|
||||||
"steps" : [
|
|
||||||
{"t":"wrap", "fn": "Bangle.setGPSPower", "id": "gpspower"},
|
|
||||||
{"t":"cmd", "js": "NRF.getSecurityStatus = () => {}"},
|
|
||||||
{"t":"cmd", "js": "eval(require('Storage').read('android.boot.js'))"},
|
|
||||||
{"t":"assert", "js": "!NRF.getSecurityStatus().connected", "is":"true", "text": "Not connected"},
|
|
||||||
{"t":"assertArray", "js": "Bangle._PWR.GPS", "is":"undefinedOrEmpty", "text": "No GPS clients"},
|
|
||||||
{"t":"assert", "js": "Bangle.isGPSOn()", "is":"false", "text": "isGPSOn is correct"},
|
|
||||||
{"t":"assert", "js": "Bangle.setGPSPower(1, 'test')", "is":"true", "text": "setGPSPower returns true when switching on"},
|
|
||||||
{"t":"assertArray", "js": "Bangle._PWR.GPS", "is":"notEmpty", "text": "GPS clients"},
|
|
||||||
{"t":"assert", "js": "Bangle.isGPSOn()", "is":"true", "text": "isGPSOn is correct"},
|
|
||||||
{"t":"assertCall", "id": "gpspower", "argAsserts": [ { "t": "assert", "arg": "0", "is": "equal", "to": 1 } ] , "text": "internal GPS switched on"}
|
|
||||||
{"t":"assert", "js": "Bangle.setGPSPower(0, 'test')", "is":"false", "text": "setGPSPower returns false when switching off"},
|
|
||||||
{"t":"assertArray", "js": "Bangle._PWR.GPS", "is":"undefinedOrEmpty", "text": "No GPS clients"},
|
|
||||||
{"t":"assert", "js": "Bangle.isGPSOn()", "is":"false", "text": "isGPSOn is correct"},
|
|
||||||
{"t":"assertCall", "id": "gpspower", "argAsserts": [ { "t": "assert", "arg": "0", "is": "equal", "to": 0 } ] , "text": "internal GPS switched off"}
|
|
||||||
]
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue