-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpecRunner.html
70 lines (52 loc) · 1.5 KB
/
SpecRunner.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Jasmine Spec Runner v3.3.0</title>
<link rel="shortcut icon" type="image/png" href="lib/jasmine-3.3.0/jasmine_favicon.png">
<link rel="stylesheet" href="lib/jasmine-3.3.0/jasmine.css">
<script src="lib/jasmine-3.3.0/jasmine.js"></script>
<script src="lib/jasmine-3.3.0/jasmine-html.js"></script>
<script src="lib/jasmine-3.3.0/boot.js"></script>
<!-- include source files here... -->
<!-- <script src="src/Player.js"></script>
<script src="src/Song.js"></script> -->
<!-- <script src="src/ExampleCode.js"></script> -->
<!-- include spec files here... -->
<!-- <script src="spec/SpecHelper.js"></script>
<script src="spec/PlayerSpec.js"></script> -->
<!-- <script src="spec/test.js"></script> -->
<!-- <script src="src/app.js"></script> -->
<script>
var exports=module.exports = (object, onChange) => {
const handler = {
get(target, property, receiver) {
try {
return new Proxy(target[property], handler);
} catch (err) {
return Reflect.get(target, property, receiver);
}
},
defineProperty(target, property, descriptor) {
onChange();
return Reflect.defineProperty(target, property, descriptor);
},
deleteProperty(target, property) {
onChange();
return Reflect.deleteProperty(target, property);
}
};
return new Proxy(object, handler);
};
let j = {
a: 1
};
let changeable = exports(j, function(){
alert("야호")
});
changeable.a = 2
</script>
</head>
<body>
</body>
</html>