Version 1
[yaffs-website] / web / core / modules / system / tests / modules / js_webassert_test / js / js_webassert_test.wait_for_ajax_request.js
1 /**
2  * @file
3  *  Testing behavior for JSWebAssertTest.
4  */
5
6 (function ($, Drupal, drupalSettings) {
7
8   'use strict';
9
10   /**
11    * @type {Drupal~behavior}
12    *
13    * @prop {Drupal~behaviorAttach} attach
14    *   Makes changes in the DOM to be able to test the completion of AJAX in assertWaitOnAjaxRequest.
15    */
16   Drupal.behaviors.js_webassert_test_wait_for_ajax_request = {
17     attach: function (context) {
18       $('input[name="test_assert_wait_on_ajax_input"]').val('js_webassert_test');
19     }
20   };
21
22 })(jQuery, Drupal, drupalSettings);