refactor the test infra: use puppeteer instead of jsdom to get rid of some hack implementations
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script src="a.js"></script>
|
||||
<script src="http://localhost:3030/js/a.js"></script>
|
||||
<script>
|
||||
var a = 1 + 1;
|
||||
</script>
|
||||
@@ -30,7 +30,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<noscript src="a.js"></noscript>
|
||||
<noscript src="http://localhost:3030/js/a.js"></noscript>
|
||||
<noscript></noscript>
|
||||
</body>
|
||||
|
||||
|
||||
16
test/html/with-style-sheet.html
Normal file
16
test/html/with-style-sheet.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<!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 style sheet</title>
|
||||
<link rel="stylesheet" href="http://localhost:3030/css/style.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user