-
Notifications
You must be signed in to change notification settings - Fork 15
/
transformed.html
47 lines (47 loc) · 2.45 KB
/
transformed.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
<!doctype html>
<head><meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Test262 Web Runner For Tools</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="style-transformed.css">
<script src="jszip.min.js"></script>
<script src="main.js"></script>
<script src="transformed.js"></script>
</head>
<body>
<input type="file" accept=".zip" id="fileLoader" style="display: none;">
<div id="controls" style="display: none;">
<input type="button" value="Pause" id="pause" class="btn btn-primary btn-lg">
<input type="button" value="Cancel" id="cancel" class="btn btn-danger btn-lg">
</div>
<div class="container">
<div class="page-header">
<h1>Test262 Web Runner</h1>
<p class="lead">Run the official <a href="https://github.com/tc39/test262">ECMAScript conformance tests</a> in your browser, with preprocessing for tooling.</p>
</div>
<div id="transform-specifier">
<p>Provide code defining a function named 'transform', which takes as arguments the text of a test and its path and returns either new text or 'null', where 'null' means 'skip this test'.</p>
<p>This code is evaluated immediately, in the context of this page, so it can pull in scripts from external resources.</p>
<input type="button" value="Use this transformer" id="make-transformer" class="btn"><br><br>
<textarea id="transformer" rows=10 cols=50>function transform(text, path) {
return text;
}</textarea>
</div>
<div id="content">
<span id="buttons">
Load a .zip of <a href="https://github.com/tc39/test262.git">the Test262 repository</a> (e.g. <a href="https://api.github.com/repos/tc39/test262/zipball">this</a>):
<input type="button" class="btn btn-default btn-sm" id="loadLocal" value="Local">
<input type="button" class="btn btn-default btn-sm" id="loadGithub" value="Remote">
<div id="loadStatus" style="display: none;">Loading... <div id="loadFraction"></div></div>
<br>
</span>
<div id="tree"></div>
<div id="failures" style="display: none;">
<span id="failuresToggle">[+] Test failures (<span id="failuresCount">0</span>):</span>
<ul id="failList" style="display: none;"></ul>
</div><br>
</div>
</div>
</body>