Stub trimChat for PhantomJS and move tests_main.js to tests/main.js

This commit is contained in:
JC Brand 2014-05-06 09:56:04 +02:00
parent ad466b62a0
commit 364c340ab5
3 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,5 @@
config = {
baseUrl: '.',
paths: {
"jquery": "components/jquery/dist/jquery",
"jquery.tinysort": "components/tinysort/src/jquery.tinysort",

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" type="text/css" media="screen" href="stylesheets/stylesheet.css">
<link rel="stylesheet" type="text/css" media="screen" href="converse.css">
<script src="main.js"></script>
<script data-main="tests_main" src="components/requirejs/require.js"></script>
<script data-main="tests/main" src="components/requirejs/require.js"></script>
</head>
<body>

View File

@ -67,6 +67,9 @@ require([
], function () {
// Make sure this callback is only called once.
delete converse.callback;
// Stub the trimChat method. It causes havoc when running with
// phantomJS.
converse.ChatBoxView.prototype.trimChat = function () {};
// Jasmine stuff
var jasmineEnv = jasmine.getEnv();