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
|
- sudo apt-get -yq install build-essential chrpath libssl-dev libfontconfig1-dev #< Build Dependencies
|
||||||
before_script:
|
before_script:
|
||||||
- chmod +x ./build.sh
|
- chmod +x ./build.sh
|
||||||
|
- chmod +x ./test/run-tests.sh
|
||||||
- chmod +x ./test/run-tests-ghostdriver.sh
|
- chmod +x ./test/run-tests-ghostdriver.sh
|
||||||
script:
|
script:
|
||||||
- ./build.sh --confirm --silent #< Build
|
- ./build.sh --confirm --silent #< Build
|
||||||
|
- ./test/run-tests.sh #< Test (PhantomJS)
|
||||||
- ./test/run-tests-ghostdriver.sh #< Test (GhostDriver / PhantomJSDriver)
|
- ./test/run-tests-ghostdriver.sh #< Test (GhostDriver / PhantomJSDriver)
|
||||||
|
|
|
@ -123,11 +123,11 @@ jasmine.ConsoleReporter = function(print, doneCallback, showColors) {
|
||||||
if (results.skipped) {
|
if (results.skipped) {
|
||||||
yellowStar();
|
yellowStar();
|
||||||
} else {
|
} else {
|
||||||
if (results.passed()) {
|
if (results.passed()) {
|
||||||
print('#' + spec.id + ' ' + spec.suite.description + ': ' + spec.description);
|
print('#' + spec.id + ' ' + spec.suite.description + ': ' + spec.description);
|
||||||
greenPass();
|
greenPass();
|
||||||
} else {
|
} else {
|
||||||
print(redStr('#' + spec.id + ' ' + spec.suite.description + ': ' + spec.description));
|
print(redStr('#' + spec.id + ' ' + spec.suite.description + ': ' + spec.description));
|
||||||
redFail();
|
redFail();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -172,4 +172,4 @@ jasmine.ConsoleReporter = function(print, doneCallback, showColors) {
|
||||||
summaryFunction(runner.specs().length, results.failedCount);
|
summaryFunction(runner.specs().length, results.failedCount);
|
||||||
doneCallback(runner);
|
doneCallback(runner);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -99,7 +99,6 @@ describe("phantom global object", function() {
|
||||||
waits(0);
|
waits(0);
|
||||||
|
|
||||||
runs(function() {
|
runs(function() {
|
||||||
console.log(stack);
|
|
||||||
expect(stack[0].file).toEqual(helperFile);
|
expect(stack[0].file).toEqual(helperFile);
|
||||||
expect(stack[0].line).toEqual(2);
|
expect(stack[0].line).toEqual(2);
|
||||||
phantom.onError = phantom.defaultErrorHandler;
|
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