Stub trimChat for PhantomJS and move tests_main.js to tests/main.js
This commit is contained in:
parent
ad466b62a0
commit
364c340ab5
1
main.js
1
main.js
@ -1,4 +1,5 @@
|
||||
config = {
|
||||
baseUrl: '.',
|
||||
paths: {
|
||||
"jquery": "components/jquery/dist/jquery",
|
||||
"jquery.tinysort": "components/tinysort/src/jquery.tinysort",
|
||||
|
@ -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>
|
||||
|
@ -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();
|
Loading…
Reference in New Issue
Block a user