qunit: Refactor and simplify testrunner to fix nested modules
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 31 Jan 2018 21:05:09 +0000 (13:05 -0800)
committerTimo Tijhof <krinklemail@gmail.com>
Wed, 31 Jan 2018 21:27:48 +0000 (13:27 -0800)
commitc3217d587d4c438a8a4c159b84fdeccf81e60d32
treeaf5ae22ecfdffe31c9ec66e3bf0c5a0e8d008bcb
parent7babd362babcbf7f20adb8e12edb4f4bc1d4249f
qunit: Refactor and simplify testrunner to fix nested modules

Follows-up 5a4938140643dc5c1539e882454f51b2742dae.

* Merge the three QUnit.module extensions into one.
* Change makeSafeEnv() to use Object.create() instead of creating
  a simplified objects so that other properties are still accessible.

The 'testrunner-nested > Dummy' test now actually runs,
previously it was lost.

Change-Id: Id4aeb93582f8cc73b0dffe768a7864002ec85deb
tests/qunit/data/testrunner.js