github.com/web-platform-tests/wpt.fyi@v0.0.0-20240530210107-70cf978996f1/webapp/components/test/interop-data.html (about)

     1  <!doctype html>
     2  <html>
     3  <head>
     4    <meta charset="utf-8">
     5    <script src="../../node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
     6    <script src="../../node_modules/wct-browser-legacy/browser.js"></script>
     7  </head>
     8  
     9  <body>
    10  <script type="module">
    11  import {interopData} from '../interop-data.js';
    12  // Check that the data in the JavaScript file and in the JSON file match.
    13  // interop-data.json is used by some Mozilla infrastructure, so the file should
    14  // not be deleted and should remain up-to-date.
    15  suite('contents of webapp/components/interop-data.js', () => {
    16    test('should match webapp/static/interop-data.json exactly', async() => {
    17      const resp = await fetch('/static/interop-data.json');
    18      const interopJson = await resp.json();
    19      assert.deepEqual(interopData, interopJson);
    20    });
    21  });
    22  </script>
    23  </body>
    24  
    25  </html>