Skip to content
Browse files

Test e.filename for correctness.

  • Loading branch information...
1 parent 9cc4627 commit d936fbb0452c39d893a3a51ec9d6d572ab4e4e7d @pgriess pgriess committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/test-error.js
View
4 test/test-error.js
@@ -10,6 +10,10 @@ var receivedError = false;
w.onerror = function(e) {
assert.equal(5, e.lineno);
assert.equal('AssertionError: true == false', e.message);
+ assert.equal(
+ e.filename.substring(e.filename.lastIndexOf('/') + 1),
+ 'error.js'
+ );
receivedError = true;
w.terminate();

0 comments on commit d936fbb

Please sign in to comment.
Something went wrong with that request. Please try again.