refactor test infra so most test cases could be implemented by pure HTML

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent e9cf631934
commit 0e35b86d87
5 changed files with 146 additions and 77 deletions

View File

@@ -11,8 +11,27 @@
<body>
<script src="a.js"></script>
<script>
console.log(1)
var a = 1 + 1;
</script>
</body>
</html>
<!-- TEST_DIVIDER -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>with script</title>
</head>
<body>
<noscript src="a.js"></noscript>
<noscript></noscript>
</body>
</html>