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