Fix: update result record to DB
This commit is contained in:
+7
-7
@@ -122,7 +122,7 @@ QUnit.test( "TypingExamDB", function( assert ) {
|
||||
WRITING_ID, //writingRecord
|
||||
RECORD - 10, // record
|
||||
(function(jsonData) { // onSucceeded
|
||||
console.log(jsonData);
|
||||
// console.log(jsonData);
|
||||
updateTypingExamRecord2();
|
||||
}).bind(this),
|
||||
(function(jsonData) { // onFailed
|
||||
@@ -138,11 +138,11 @@ QUnit.test( "TypingExamDB", function( assert ) {
|
||||
WRITING_ID, //writingRecord
|
||||
RECORD, // record
|
||||
(function(jsonData) { // onSucceeded
|
||||
console.log(jsonData);
|
||||
// console.log(jsonData);
|
||||
getTypingExamHighestRecord();
|
||||
}).bind(this),
|
||||
(function(jsonData) { // onFailed
|
||||
console.log(jsonData);
|
||||
// console.log(jsonData);
|
||||
}).bind(this)
|
||||
);
|
||||
}
|
||||
@@ -154,7 +154,7 @@ QUnit.test( "TypingExamDB", function( assert ) {
|
||||
dbService.getTypingExamHighestRecord(
|
||||
WRITING_ID,
|
||||
(function(jsonData) { // onSucceeded
|
||||
console.log(jsonData);
|
||||
// console.log(jsonData);
|
||||
|
||||
var highestRecord = jsonData["highestRecordData"];
|
||||
assert.equal(highestRecord["highestRecord"], RECORD + 10, "highest record");
|
||||
@@ -175,11 +175,11 @@ QUnit.test( "TypingExamDB", function( assert ) {
|
||||
WRITING_ID, //writingRecord
|
||||
RECORD + 20, // record
|
||||
(function(jsonData) { // onSucceeded
|
||||
console.log(jsonData);
|
||||
// console.log(jsonData);
|
||||
getTypingExamHighestRecord2();
|
||||
}).bind(this),
|
||||
(function(jsonData) { // onFailed
|
||||
console.log(jsonData);
|
||||
// console.log(jsonData);
|
||||
done();
|
||||
}).bind(this)
|
||||
);
|
||||
@@ -190,7 +190,7 @@ QUnit.test( "TypingExamDB", function( assert ) {
|
||||
dbService.getTypingExamHighestRecord(
|
||||
WRITING_ID,
|
||||
(function(jsonData) { // onSucceeded
|
||||
console.log(jsonData);
|
||||
// console.log(jsonData);
|
||||
|
||||
var highestRecord = jsonData["highestRecordData"];
|
||||
assert.equal(highestRecord["highestRecord"], RECORD + 20, "highest record");
|
||||
|
||||
Reference in New Issue
Block a user