-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Use "inline" source maps in the compiler (part of #1375) * fix regression test
- Loading branch information
1 parent
8695a04
commit b901d9e
Showing
6 changed files
with
41 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
var expect = require('chai').expect; | ||
|
||
describe('[Regression](GH-1267)', function () { | ||
it('Incorrect callsite stack for failed assertion in a method of some class (GH-1267)', function () { | ||
return runTests('testcafe-fixtures/index.test.js', null, { only: ['chrome'] }) | ||
.catch(function (errs) { | ||
expect(errs[0]).to.contains( | ||
' 3 |class Page {\n' + | ||
' 4 | async expect (t) {\n' + | ||
' > 5 | await t.expect(false).ok();\n' + | ||
' 6 | }\n' + | ||
' 7 |}\n' | ||
); | ||
}); | ||
}); | ||
}); |
18 changes: 18 additions & 0 deletions
18
test/functional/fixtures/regression/gh-1267/testcafe-fixtures/index.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
fixture `gh-1267`; | ||
|
||
class Page { | ||
async expect (t) { | ||
await t.expect(true).ok(); | ||
} | ||
} | ||
|
||
async function fn () { | ||
|
||
} | ||
|
||
test('test', async t => { | ||
const page = new Page(); | ||
|
||
await page.expect(t); | ||
await fn(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
test/server/data/test-suites/regression-gh-1267/testfile.js
This file was deleted.
Oops, something went wrong.