Fix tests for the fullscreen view_mode
This commit is contained in:
parent
b751c06694
commit
6a462f6c2c
|
@ -6872,7 +6872,7 @@ body.reset {
|
|||
flex-direction: row-reverse; }
|
||||
#conversejs.converse-fullscreen .converse-chatboxes, #conversejs.converse-mobile .converse-chatboxes {
|
||||
width: 100vw;
|
||||
right: 15px; }
|
||||
left: -15px; }
|
||||
#conversejs.converse-overlayed {
|
||||
height: 3em; }
|
||||
#conversejs .brand-heading {
|
||||
|
|
|
@ -71,7 +71,7 @@ body.reset {
|
|||
&.converse-mobile {
|
||||
.converse-chatboxes {
|
||||
width: 100vw;
|
||||
right: 15px; // Hack due to padding added by bootstrap
|
||||
left: -15px; // Hack due to padding added by bootstrap
|
||||
}
|
||||
}
|
||||
&.converse-overlayed {
|
||||
|
|
|
@ -2,16 +2,23 @@
|
|||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Converse.js Tests</title>
|
||||
<meta name="description" content="Converse.js: A chat client for your website" />
|
||||
<title>Converse Tests</title>
|
||||
<meta name="description" content="Converse XMPP Chat" />
|
||||
<link rel="shortcut icon" type="image/png" href="../node_modules/jasmine-core/images/jasmine_favicon.png">
|
||||
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="../node_modules/jasmine-core/lib/jasmine-core/jasmine.css">
|
||||
<link type="text/css" rel="stylesheet" media="screen" href="../css/inverse.css" />
|
||||
|
||||
<link type="text/css" rel="stylesheet" media="screen" href="../node_modules/font-awesome/css/font-awesome.min.css" />
|
||||
<link type="text/css" rel="stylesheet" media="screen" href="../css/converse.css" />
|
||||
<script src="../dist/converse.js"></script>
|
||||
<script src="../src/config.js"></script>
|
||||
<script type="text/javascript">config.view_mode = 'fullscreen';</script>
|
||||
<script type="text/javascript">window.view_mode = 'fullscreen';</script>
|
||||
<script data-main="runner" src="../node_modules/requirejs/require.js"></script>
|
||||
<style>
|
||||
body {
|
||||
overflow-y: hidden;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body></body>
|
||||
</html>
|
|
@ -2,8 +2,8 @@
|
|||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Converse.js Tests</title>
|
||||
<meta name="description" content="Converse.js: A chat client for your website" />
|
||||
<title>Converse Tests</title>
|
||||
<meta name="description" content="Converse XMPP Chat" />
|
||||
<link rel="shortcut icon" type="image/png" href="../node_modules/jasmine-core/images/jasmine_favicon.png">
|
||||
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="../node_modules/jasmine-core/lib/jasmine-core/jasmine.css">
|
||||
|
@ -27,7 +27,7 @@
|
|||
<div id="header_wrap" class="outer">
|
||||
<header class="inner">
|
||||
<h1 class="brand-heading tests-brand-heading">
|
||||
<i class="icon-conversejs"></i> Converse.js</h1>
|
||||
<i class="icon-conversejs"></i> Converse</h1>
|
||||
<h2 id="project_tagline">Tests</h2>
|
||||
</header>
|
||||
</div>
|
||||
|
|
|
@ -211,8 +211,8 @@ var specs = [
|
|||
require(['console-reporter', 'mock', 'sinon', 'wait-until-promise', 'pluggable'],
|
||||
function(ConsoleReporter, mock, sinon, waitUntilPromise, pluggable) {
|
||||
|
||||
if (config.view_mode) {
|
||||
mock.view_mode = config.view_mode;
|
||||
if (window.view_mode) {
|
||||
mock.view_mode = window.view_mode;
|
||||
}
|
||||
window.sinon = sinon;
|
||||
window.waitUntilPromise = waitUntilPromise.default;
|
||||
|
|
Loading…
Reference in New Issue
Block a user