我要评分
获取效率
正确性
完整性
易理解

Compatibility Testing Tool Report Display Issues

Symptom

Compatibility testing tool reports are displayed incorrectly. When opening Chrome DevTools, errors such as "structuredClone is not defined" and "Uncaught SyntaxError: Unexpected token '.'" are observed.

Possible Causes

Some code in compatibility testing reports cannot be parsed in earlier browser versions.

Fixing the "structuredClone is not defined" Error

  1. Go to the extracted compatibility_testing.tar.gz directory.
  2. Open the template.html.template file and modify line 134 as follows:
    const dataCopy = JSON.parse(JSON.stringify(pipelineData[target]?.[`${target}_tb_data`]));
    Figure 1 Before modification
    Figure 2 After modification
  3. Perform the compatibility test again.

Fixing the "Uncaught SyntaxError: Unexpected token '.'" Error

  1. Go to the extracted compatibility_testing.tar.gz directory.
  2. Open the template.html.template file and modify all occurrences of "?." in the file.
    1. Scenario 1: Remove "?." from expressions in the "?.[]" format.
    2. Scenario 2: Remove "?" from the expressions in the "?.name" format.
  3. Perform the compatibility test again.