Fix: tdd for connect_db.php
This commit is contained in:
+20
@@ -1,3 +1,23 @@
|
||||
//////////////////////////////////////////////////
|
||||
// DBConnector
|
||||
|
||||
QUnit.test( "DBConnector", function( assert ) {
|
||||
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open("POST", "./../src/web/php/writing/player_list.php", true);
|
||||
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
||||
xhr.onreadystatechange = function() {
|
||||
if(xhr.readyState == 4 && xhr.status == 200) {
|
||||
var replyJSON = JSON.parse(xhr.responseText);
|
||||
console.log(replyJSON);
|
||||
}
|
||||
};
|
||||
xhr.send();
|
||||
|
||||
assert.equal(1, 0, "DBConnector");
|
||||
});
|
||||
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
// StringUtil
|
||||
|
||||
|
||||
Reference in New Issue
Block a user