xref: /third_party/node/test/fixtures/wpt/webmessaging/broadcastchannel/origin.window.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/fixtures/wpt/webmessaging/broadcastchannel/
11cb0ef41Sopenharmony_ciasync_test(t => {
21cb0ef41Sopenharmony_ci  const crossOriginURL = new URL("resources/origin.html", self.location.href).href.replace("://", "://天気の良い日."),
31cb0ef41Sopenharmony_ci        frame = document.createElement("iframe");
41cb0ef41Sopenharmony_ci  frame.src = crossOriginURL;
51cb0ef41Sopenharmony_ci  document.body.appendChild(frame);
61cb0ef41Sopenharmony_ci  t.add_cleanup(() => frame.remove());
71cb0ef41Sopenharmony_ci  self.onmessage = t.step_func_done(e => {
81cb0ef41Sopenharmony_ci    assert_equals(e.data, self.origin.replace("://", "://xn--n8j6ds53lwwkrqhv28a."));
91cb0ef41Sopenharmony_ci  });
101cb0ef41Sopenharmony_ci}, "Serialization of BroadcastChannel origin");
11

Indexes created Thu Nov 07 10:32:03 CST 2024