Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

Fix Tester module and its selftest #266

Merged
merged 4 commits into from
Nov 2, 2012

Conversation

starlocke
Copy link
Contributor

The aliases for the Tester module's methods need to be included in the selftest.

Regression happened, and was not reported by the original selftest scripts. Specifically, Tester.assertThrows() and Tester.assertSelectorExists() were mis-declared and backwards compatibility broke.

This contribution improves the selftest, and fixes the declarations of those 2 methods.

Notice - the selftest for the Tester module simply fails hard when undefined functions are called upon, and the bottom-line result of the selftest actually shows "green", whereas, scrolling through the full log will reveal "red" errors. This is because the selftest is not yet at the level of "let me assert that the method exists before I try to invoke it". Similar issues are likely to exist with all the other selftest scripts.

n1k0 added a commit that referenced this pull request Nov 2, 2012
Fix Tester module and its selftest
@n1k0 n1k0 merged commit 07344b3 into casperjs:master Nov 2, 2012
@n1k0
Copy link
Member

n1k0 commented Nov 2, 2012

Thanks :)

n1k0 added a commit that referenced this pull request Nov 2, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants