zulip/docs/testing
Steve Howell 6b39d6004e zjquery: Use Proxy to detect undefined stubs.
We now use a Proxy to wrap zjquery elements, so
that we can detect callers trying to invoke methods
(or access attributes) that do not exist.  We try
to give useful error messages in those cases.

The main impact here is that we force lots of tests
to explicitly stub `length`.

Also, we can't do equality checks on zjquery
objects any more due to the proxy object, but the
easy workaround is to compare selectors.  (This
is generally an unnecessary technique, anyway.)

The proxy wrapper is fairly straightforward, and
we just have a few special cases for things like
"inspect" that happen when you try to print out
objects.
2019-05-20 11:28:32 -07:00
..
continuous-integration.md Revert "docs: Update .html links to .md." 2019-04-05 17:58:54 -07:00
index.rst docs: Add initial documentation for TypeScript. 2019-04-13 12:20:40 -07:00
linters.md docs: Add ".ts" support in docs and configuration. 2019-04-12 11:26:17 -07:00
manual-testing.md docs: Add message box to manual testing docs. 2019-04-07 13:01:24 -07:00
mypy.md docs: Clarify we're now fully on the Python 3 type syntax. 2019-04-13 11:55:33 -07:00
testing-with-casper.md docs: Reorganize developer docs to improve navigation. 2017-11-16 09:45:08 -08:00
testing-with-django.md Revert "docs: Update .html links to .md." 2019-04-05 17:58:54 -07:00
testing-with-node.md zjquery: Use Proxy to detect undefined stubs. 2019-05-20 11:28:32 -07:00
testing.md Revert "docs: Update .html links to .md." 2019-04-05 17:58:54 -07:00
typescript.md docs: Add initial documentation for TypeScript. 2019-04-13 12:20:40 -07:00