make 'page' the default console; fix test bustage

This commit is contained in:
Myk Melez 2014-09-08 22:37:34 -07:00
Родитель 79edd24f3f
Коммит 246b354dde
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -24,7 +24,7 @@
* page: the in-page console (an HTML element with ID "console")
* native: the native console (via the *dump* function)
*/
var consoles = urlParams.logConsole ? urlParams.logConsole.split(",") : ["web"];
var consoles = urlParams.logConsole ? urlParams.logConsole.split(",") : ["page"];
// If we're only printing to the web console, then we use the original console
// object, so file/line number references show up correctly in it.

Просмотреть файл

@ -15,9 +15,9 @@ casper.test.begin("unit tests", 5, function(test) {
}, 30000);
casper
.thenOpen("http://localhost:8000/index.html?main=tests/isolate/TestIsolate")
.thenOpen("http://localhost:8000/index.html?main=tests/isolate/TestIsolate&logLevel=info")
.waitForText("DONE", function then() {
test.assertTextExists("m\na ma\n2\nma\n2\n1 isolate\nIsolate ID correct\n4\n5\n1 isolate\nma\nma\n3 isolates\n1 m1\n2 m2\n4\n5\nma\n1 isolate\nIsolates terminated\nr mar\n2\nmar\nc marc\n2\nmarc\nMain isolate still running");
test.assertTextExists("I m\nI a ma\nI 2\nI ma\nI 2\nI 1 isolate\nI Isolate ID correct\nI 4\nI 5\nI 1 isolate\nI ma\nI ma\nI 3 isolates\nI 1 m1\nI 2 m2\nI 4\nI 5\nI ma\nI 1 isolate\nI Isolates terminated\nI r mar\nI 2\nI mar\nI c marc\nI 2\nI marc\nI Main isolate still running");
});
casper