-
Notifications
You must be signed in to change notification settings - Fork 16
/
context.html
39 lines (37 loc) · 1.52 KB
/
context.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!doctype html>
<html>
<head>
<title>Angular test with Puppeteer</title>
<link href="favicon.ico" rel="icon" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<link rel="stylesheet" href="../node_modules/jasmine-core/lib/jasmine-core/jasmine.css" />
</head>
<body>
<script>
__karma__ = {
start: () => { }
};
__puppeteer__ = true;
</script>
<script type="text/javascript" src="/_karma_webpack_/inline.bundle.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="/_karma_webpack_/polyfills.bundle.js" crossorigin="anonymous"></script>
<script src="/node_modules/jasmine-core/lib/jasmine-core/jasmine.js"></script>
<script src="/node_modules/jasmine-core/lib/jasmine-core/jasmine-html.js"></script>
<script src="/node_modules/jasmine-core/lib/jasmine-core/boot.js"></script>
<script type="text/javascript" src="/_karma_webpack_/scripts.bundle.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="/_karma_webpack_/vendor.bundle.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="/_karma_webpack_/main.bundle.js" crossorigin="anonymous"></script>
<script>
let code = 0;
jasmine.getEnv().addReporter({
specDone: function(result) {
if (result.status !== 'passed') code = 1;
},
jasmineDone: function() {
if (typeof puppeteerDone === 'function') puppeteerDone(code);
}
});
</script>
</body>
</html>