testLoadWithOptions() {
    const testUrl = TrustedResourceUrl.fromConstant(
        Const.from('testdata/jsloader_test1.js'));
    const testUrlValue = TrustedResourceUrl.unwrap(testUrl);
    const options = {
      attributes: {'data-attr1': 'enabled', 'data-attr2': 'disabled'},
      timeout: undefined,          // Use default
      cleanupWhenDone: undefined,  // Use default
      document: undefined,         // Use default
    };
    const result = jsloader.safeLoad(testUrl, options);

    return result.then(() => {
      /**
       * @suppress {visibility,strictMissingProperties} suppression added to
       * enable type checking
       */
      const script = result.defaultScope_.script_;

      // Check that the URI matches ours.
      assertTrue('server URI', script.src.indexOf(testUrlValue) >= 0);

      // Check that the attributes specified are set on the script tag.
      assertEquals(
          'attribute option not applied for attr1', 'enabled',
          script.getAttribute('data-attr1'));
      assertEquals(
          'attribute option not applied for attr2', 'disabled',
          script.getAttribute('data-attr2'));
    });
  }
@suppress {strictMissingProperties} suppression added
                          to enable type checking