forked from janodvarko/harviewer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestLoadArchives.html.php
More file actions
32 lines (29 loc) · 1.03 KB
/
Copy pathtestLoadArchives.html.php
File metadata and controls
32 lines (29 loc) · 1.03 KB
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
<?php
require_once("config.php");
?>
<!doctype html>
<html>
<head>
<title>HAR Viewer Test Case</title>
<base href="<?php echo $harviewer_base ?>" />
<link rel="stylesheet" href="css/harViewer.css" type="text/css">
</head>
<body class="harBody">
<div id="content" version="test"></div>
<script src="scripts/jquery.js"></script>
<script data-main="scripts/harViewer" src="scripts/require.js"></script>
<script>
$("#content").bind("onViewerInit", function(event)
{
// Get application object
var viewer = event.target.repObject;
var hars = ["<?php echo $test_base.'tests/hars/testLoad3.har' ?>", "<?php echo $test_base.'tests/hars/simple.har' ?>"];
var harps = ["<?php echo $test_base.'tests/hars/testLoad1.harp' ?>"];
var callback = function() {};
var errorCallback = function() {};
var doneCallback = function() {};
viewer.loadArchives(hars, harps, 'callback_testLoad1', callback, errorCallback, doneCallback);
});
</script>
</body>
</html>