Fix: tdd for connect_db.php

This commit is contained in:
2019-07-10 09:00:51 +09:00
parent b25b661032
commit abd22d5156
3 changed files with 48 additions and 19 deletions
+20
View File
@@ -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