geary/test
Michael James Gratton 22de6b122e Fix JS error getting F=F text from ComposerWebView. Add JS unit tests.
* ui/composer-web-view.js (ComposerPageState::resolveNesting): Apply JS
  RegExp globally, to match default GLib RegEx behaviour.

* test/js/composer-page-state-test.vala: New tests covering generation of
  HTML and F=F text from JS ComposerPageState object.

* test/CMakeLists.txt: Add the new test.

* test/main.vala (main): Add a test suite for JS tests, add the new test
  to it.

* src/client/components/client-web-view.vala (ClientWebView): Add a
  reason to the JSError domain for when a JS exception is thrown.

* bindings/vapi/javascriptcore-4.0.vapi (JS::Context): Add JS.Type and
  some additional methods needed for the unit tests. Move most
  GlobalContext methods to Context so we can pass the lowest common
  demominator around.
2017-02-01 00:41:43 +11:00
..
client/application Add simple/demo client unit test using GSettings. 2016-12-26 13:21:58 +10:30
engine Add unit test for Geary.RFC822.Message::get_preview. 2016-12-23 10:38:23 +10:30
js Fix JS error getting F=F text from ComposerWebView. Add JS unit tests. 2017-02-01 00:41:43 +11:00
CMakeLists.txt Fix JS error getting F=F text from ComposerWebView. Add JS unit tests. 2017-02-01 00:41:43 +11:00
main.vala Fix JS error getting F=F text from ComposerWebView. Add JS unit tests. 2017-02-01 00:41:43 +11:00
testcase.vala Add an initial/example unit test. 2016-12-13 11:27:19 +11:00