-
-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'mntm/dev' into dl-more-flash
- Loading branch information
Showing
155 changed files
with
5,948 additions
and
963 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,3 +65,6 @@ PVS-Studio.log | |
.gdbinit | ||
|
||
/fbt_options_local.py | ||
|
||
# JS packages | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
applications/debug/unit_tests/resources/unit_tests/js/basic.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
let tests = require("tests"); | ||
let flipper = require("flipper"); | ||
|
||
tests.assert_eq(1337, 1337); | ||
tests.assert_eq("hello", "hello"); | ||
|
||
tests.assert_eq("compatible", sdkCompatibilityStatus(0, 1)); | ||
tests.assert_eq("firmwareTooOld", sdkCompatibilityStatus(100500, 0)); | ||
tests.assert_eq("firmwareTooNew", sdkCompatibilityStatus(-100500, 0)); | ||
tests.assert_eq(true, doesSdkSupport(["baseline"])); | ||
tests.assert_eq(false, doesSdkSupport(["abobus", "other-nonexistent-feature"])); | ||
|
||
tests.assert_eq("momentum", flipper.firmwareVendor); | ||
tests.assert_eq(0, flipper.jsSdkVersion[0]); | ||
tests.assert_eq(1, flipper.jsSdkVersion[1]); |
Oops, something went wrong.