-
Notifications
You must be signed in to change notification settings - Fork 0
/
PHPUnitDiff.html
79 lines (59 loc) · 2.26 KB
/
PHPUnitDiff.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
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html>
<head>
<title>PHPUnitDiff</title>
<!-- CDSEVM Requirements-->
<script src="References/knockout-2.2.0.js"></script>
<script src="References/knockout.mapping.js"></script>
<script src="References/knockout.validation.js"></script>
<script src="References/knockout.command.js"></script>
<script src="References/jquery-1.8.2.min.js"></script>
<script src="References/jquery-ui-1.9.2.custom.min.js"></script>
<script src="References/knockout-sortable.js"></script>
<!--App Code-->
<script src="PHPUnitDiffVM.js"></script>
<link rel="stylesheet" type="text/css" href="PHPUnitDiff.css">
</head>
<body>
<div id="DropZone" data-bind="event: { dragenter: NoOp, dragexit: NoOp, dragover: NoOp, drop : DropLogFile }">
Drop Log Files Here
</div>
<div data-bind="visible: TestResults().length > 0">
<div id="TestNames" >
<span>Filter:</span>
<input type="text" data-bind="value: TestFilter, valueUpdate: 'afterkeydown'"></input>
<button data-bind="click: function(){ TestFilter(''); }">clear</button>
<!-- ko foreach: $root.TestNames -->
<div class="Cell" data-bind="text: $data"></div>
<!-- /ko -->
</div>
<div data-bind="sortable: TestResults" >
<div class="TestResults">
<div class="CloseResultButton" data-bind="click: $root.TestResults.remove.bind($root.TestResults)">X</div>
<div class="ResultNames" data-bind="text: ID"></div>
<div class="DeltaControls">
<div>
<span>delta base:</span>
<select data-bind="options: $root.TestResults, optionsText: 'ID', value: DeltaBase"></select>
</div>
<div>
<button data-bind="click: $root.SetDeltaBase">set as delta base</button>
</div>
</div>
<!-- ko foreach: $root.TestNames -->
<div class="Cell" >
<div class="Delta" data-bind="css: { failed: $parent[$data].Delta() == 'failed' || $parent[$data].Delta() == 'base fail', faster : $parent[$data].TimeDelta() > 0, slower : $parent[$data].TimeDelta() < 0}">
<span data-bind="text: $parent[$data].Delta"></span>
</div>
<div class="TimeData" data-bind="text: $parent[$data].time.toFixed(4)"></div>
</div>
<!-- /ko -->
</div>
</div>
</div>
</body>
<script>
var vm = new PHPUnitDiffVM();
ko.applyBindings(vm);
</script>
</html>