Skip to content

Commit

Permalink
Quick "fix": put unstable tests in separate files
Browse files Browse the repository at this point in the history
  • Loading branch information
cjohansen committed Jan 23, 2014
1 parent 58c16b2 commit 6d4de31
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 2 deletions.
60 changes: 60 additions & 0 deletions test/server-clock.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<!DOCTYPE html>
<html>
<head>
<title>Sinon.JS Unit tests</title>
<link rel="stylesheet" type="text/css" href="../node_modules/buster-test/resources/buster-test.css">
<meta charset="utf-8">
</head>
<body>
<h1>Sinon.JS Unit tests</h1>
<p>
Unfortunately this suite is kinda unstable. Run many times. Should
eventually be fixed.
</p>
<!--
Test framework. Not using pre-built bundle because we don't want
Sinon.JS bundled inside Buster.JS (which it is in the official
distribution).
-->
<script src="../node_modules/buster-core/lib/buster-core.js"></script>
<script src="../node_modules/buster-core/lib/buster-event-emitter.js"></script>
<script src="../node_modules/buster-format/lib/buster-format.js"></script>
<script src="../node_modules/buster-assertions/lib/buster-assertions.js"></script>
<script src="../node_modules/buster-evented-logger/lib/buster-evented-logger.js"></script>
<script src="../node_modules/buster-test/node_modules/when/when.js"></script>
<script src="../node_modules/buster-test/lib/buster-test/test-context.js"></script>
<script src="../node_modules/buster-test/lib/buster-test/test-case.js"></script>
<script src="../node_modules/buster-test/lib/buster-test/test-runner.js"></script>
<script src="../node_modules/buster-test/lib/buster-test/auto-run.js"></script>
<script src="../node_modules/buster-test/lib/buster-test/stack-filter.js"></script>
<script src="../node_modules/buster-test/lib/buster-test/reporters.js"></script>
<script src="../node_modules/buster-test/lib/buster-test/reporters/html.js"></script>

<script src="../node_modules/formatio/node_modules/samsam/lib/samsam.js"></script>
<script src="../node_modules/formatio/lib/formatio.js"></script>
<!-- Custom runner -->
<script src="runner.js"></script>
<!-- Sources -->
<script src="../lib/sinon.js"></script>
<script src="../lib/sinon/match.js"></script>
<script src="../lib/sinon/spy.js"></script>
<script src="../lib/sinon/call.js"></script>
<script src="../lib/sinon/behavior.js"></script>
<script src="../lib/sinon/stub.js"></script>
<script src="../lib/sinon/mock.js"></script>
<script src="../lib/sinon/assert.js"></script>
<script src="../lib/sinon/util/event.js"></script>
<script src="../lib/sinon/util/fake_xml_http_request.js"></script>
<script src="../lib/sinon/util/fake_timers.js"></script>
<script src="../lib/sinon/util/xhr_ie.js"></script>
<script src="../lib/sinon/util/timers_ie.js"></script>
<script src="../lib/sinon/util/fake_server.js"></script>
<script src="../lib/sinon/util/fake_server_with_clock.js"></script>
<script src="../lib/sinon/collection.js"></script>
<script src="../lib/sinon/sandbox.js"></script>
<script src="../lib/sinon/test.js"></script>
<script src="../lib/sinon/test_case.js"></script>
<!-- Tests -->
<script src="sinon/util/fake_server_with_clock_test.js"></script>
</body>
</html>
2 changes: 0 additions & 2 deletions test/sinon.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,5 @@ <h1>Sinon.JS Unit tests</h1>
<script src="sinon/util/fake_xml_http_request_test.js"></script>
<script src="sinon/util/fake_server_test.js"></script>
<script src="sinon/sandbox_test.js"></script>
<script src="sinon/util/fake_timers_test.js"></script>
<script src="sinon/util/fake_server_with_clock_test.js"></script>
</body>
</html>
60 changes: 60 additions & 0 deletions test/timers.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<!DOCTYPE html>
<html>
<head>
<title>Sinon.JS Fake timers Unit tests</title>
<link rel="stylesheet" type="text/css" href="../node_modules/buster-test/resources/buster-test.css">
<meta charset="utf-8">
</head>
<body>
<h1>Sinon.JS Unit tests</h1>
<p>
Unfortunately this suite is kinda unstable. Run many times. Should
eventually be fixed.
</p>
<!--
Test framework. Not using pre-built bundle because we don't want
Sinon.JS bundled inside Buster.JS (which it is in the official
distribution).
-->
<script src="../node_modules/buster-core/lib/buster-core.js"></script>
<script src="../node_modules/buster-core/lib/buster-event-emitter.js"></script>
<script src="../node_modules/buster-format/lib/buster-format.js"></script>
<script src="../node_modules/buster-assertions/lib/buster-assertions.js"></script>
<script src="../node_modules/buster-evented-logger/lib/buster-evented-logger.js"></script>
<script src="../node_modules/buster-test/node_modules/when/when.js"></script>
<script src="../node_modules/buster-test/lib/buster-test/test-context.js"></script>
<script src="../node_modules/buster-test/lib/buster-test/test-case.js"></script>
<script src="../node_modules/buster-test/lib/buster-test/test-runner.js"></script>
<script src="../node_modules/buster-test/lib/buster-test/auto-run.js"></script>
<script src="../node_modules/buster-test/lib/buster-test/stack-filter.js"></script>
<script src="../node_modules/buster-test/lib/buster-test/reporters.js"></script>
<script src="../node_modules/buster-test/lib/buster-test/reporters/html.js"></script>

<script src="../node_modules/formatio/node_modules/samsam/lib/samsam.js"></script>
<script src="../node_modules/formatio/lib/formatio.js"></script>
<!-- Custom runner -->
<script src="runner.js"></script>
<!-- Sources -->
<script src="../lib/sinon.js"></script>
<script src="../lib/sinon/match.js"></script>
<script src="../lib/sinon/spy.js"></script>
<script src="../lib/sinon/call.js"></script>
<script src="../lib/sinon/behavior.js"></script>
<script src="../lib/sinon/stub.js"></script>
<script src="../lib/sinon/mock.js"></script>
<script src="../lib/sinon/assert.js"></script>
<script src="../lib/sinon/util/event.js"></script>
<script src="../lib/sinon/util/fake_xml_http_request.js"></script>
<script src="../lib/sinon/util/fake_timers.js"></script>
<script src="../lib/sinon/util/xhr_ie.js"></script>
<script src="../lib/sinon/util/timers_ie.js"></script>
<script src="../lib/sinon/util/fake_server.js"></script>
<script src="../lib/sinon/util/fake_server_with_clock.js"></script>
<script src="../lib/sinon/collection.js"></script>
<script src="../lib/sinon/sandbox.js"></script>
<script src="../lib/sinon/test.js"></script>
<script src="../lib/sinon/test_case.js"></script>
<!-- Tests -->
<script src="sinon/util/fake_timers_test.js"></script>
</body>
</html>

0 comments on commit 6d4de31

Please sign in to comment.