mirror of https://github.com/vitalif/phantomjs
parent
ba5998f74e
commit
77b5de1362
|
@ -9,7 +9,9 @@ install:
|
|||
- sudo apt-get -yq install build-essential chrpath libssl-dev libfontconfig1-dev #< Build Dependencies
|
||||
before_script:
|
||||
- chmod +x ./build.sh
|
||||
- chmod +x ./test/run-tests.sh
|
||||
- chmod +x ./test/run-tests-ghostdriver.sh
|
||||
script:
|
||||
- ./build.sh --confirm --silent #< Build
|
||||
- ./test/run-tests.sh #< Test (PhantomJS)
|
||||
- ./test/run-tests-ghostdriver.sh #< Test (GhostDriver / PhantomJSDriver)
|
||||
|
|
|
@ -123,11 +123,11 @@ jasmine.ConsoleReporter = function(print, doneCallback, showColors) {
|
|||
if (results.skipped) {
|
||||
yellowStar();
|
||||
} else {
|
||||
if (results.passed()) {
|
||||
print('#' + spec.id + ' ' + spec.suite.description + ': ' + spec.description);
|
||||
if (results.passed()) {
|
||||
print('#' + spec.id + ' ' + spec.suite.description + ': ' + spec.description);
|
||||
greenPass();
|
||||
} else {
|
||||
print(redStr('#' + spec.id + ' ' + spec.suite.description + ': ' + spec.description));
|
||||
print(redStr('#' + spec.id + ' ' + spec.suite.description + ': ' + spec.description));
|
||||
redFail();
|
||||
}
|
||||
}
|
||||
|
@ -172,4 +172,4 @@ jasmine.ConsoleReporter = function(print, doneCallback, showColors) {
|
|||
summaryFunction(runner.specs().length, results.failedCount);
|
||||
doneCallback(runner);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -99,7 +99,6 @@ describe("phantom global object", function() {
|
|||
waits(0);
|
||||
|
||||
runs(function() {
|
||||
console.log(stack);
|
||||
expect(stack[0].file).toEqual(helperFile);
|
||||
expect(stack[0].line).toEqual(2);
|
||||
phantom.onError = phantom.defaultErrorHandler;
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Run tests
|
||||
bin/phantomjs test/run-tests.js
|
||||
|
||||
exit $?
|
Loading…
Reference in New Issue