Add simple tests

This commit is contained in:
Slava Bacherikov committed 2013-11-21 20:13:02 +02:00
1 parent d79ba01552
commit b6cc7cd2fc
2 files changed
+24

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>QUnit Example</title>
<link rel="stylesheet" href="./assets/qunit.css">
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script src="./assets/qunit.js"></script>
<script src="../decrypt_bios.js"></script>
<script src="./tests.js"></script>
</body>
</html>
+9
View File
@@ -0,0 +1,9 @@
test( "Samsung test", function() {
var code = autoGetBiosPwd("07088120410C0000");
ok(code.samsung[0] == "12345", "Samsung 12345" );
});
test("Sony test", function() {
var code = autoGetBiosPwd("1234567");
ok(code.sony == "9648669", "Sony" );
});