Make WordPress Core


Ignore:
Timestamp:
02/24/2017 06:39:39 PM (9 years ago)
Author:
adamsilverstein
Message:

REST API: JS client - QUnit tests for custom namespace route discovery.

Add QUnit tests for the parsing of custom namespace routes. Add a custom schema fixture based on the wp-js-widgets plugin. Test that the client can parse the widget namespace in the schema and correctly construct the expected group of models and collections. Also includes a small unrelated QUnit fix to ensure nav-menu test passes when it is loaded without its tests executing as well as a small jshint fix, adding a missing semicolon since [40107].

Props jnylen0.
Fixes #39561.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/qunit/index.html

    r40058 r40109  
    4141            <script src="fixtures/customize-widgets.js"></script>
    4242            <script src="fixtures/wp-api-generated.js"></script>
     43            <script src="fixtures/js-widgets-endpoint.js"></script>
    4344            <script src="fixtures/wp-api.js"></script>
    4445        </div>
Note: See TracChangeset for help on using the changeset viewer.