edrlab / thorium-reader-epub-tests

W3C tests for EPUB 3.3 applied to Thorium Reader
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

(epub-test-fail: ocf-url_parse-path-absolute) #12

Open gautierchomel opened 2 years ago

gautierchomel commented 2 years ago

The ocf-url_parse-path-absolute test fails at

_Calculated absolute URL:httpsr2://id_l2hvb_w_uv_z2_f1_ly5jb25ma_wcv_r_u_r_s_t_g_fi_ll_rob3_jpd_w1_s_z_w_fk_z_x_ivc_h_vib_glj_y_x_rpb25z_lz_a1_yjdl_njg0_l_t_ez_z_g_et_n_g_uy_o_c1i_mm_ez_l_w_jl_y_w_yz_n_d_bi_y2_q1_n_s9ib29r_lm_vwd_wi-/media/imgs/monastery.jpg

Script in XHTML

   // The (expected) Javascript representation of the Container Root URL, as defined by the specification
   const container_root_URL = new URL('../..', document.documentURI);
   document.getElementById('container_root_url').textContent = container_root_URL;

   document.getElementById('test_url').textContent = path_absolute;

   const image_src = new URL(path_absolute, container_root_URL);
   document.getElementById('image_url_path_absolute').textContent = image_src;
   document.getElementById('expected').textContent = `{Container Root URL}${path_absolute}`;
  } catch(e) {