Commit 6a462f6c authored by JC Brand's avatar JC Brand

Fix tests for the fullscreen view_mode

parent b751c066
...@@ -6872,7 +6872,7 @@ body.reset { ...@@ -6872,7 +6872,7 @@ body.reset {
flex-direction: row-reverse; } flex-direction: row-reverse; }
#conversejs.converse-fullscreen .converse-chatboxes, #conversejs.converse-mobile .converse-chatboxes { #conversejs.converse-fullscreen .converse-chatboxes, #conversejs.converse-mobile .converse-chatboxes {
width: 100vw; width: 100vw;
right: 15px; } left: -15px; }
#conversejs.converse-overlayed { #conversejs.converse-overlayed {
height: 3em; } height: 3em; }
#conversejs .brand-heading { #conversejs .brand-heading {
......
...@@ -71,7 +71,7 @@ body.reset { ...@@ -71,7 +71,7 @@ body.reset {
&.converse-mobile { &.converse-mobile {
.converse-chatboxes { .converse-chatboxes {
width: 100vw; width: 100vw;
right: 15px; // Hack due to padding added by bootstrap left: -15px; // Hack due to padding added by bootstrap
} }
} }
&.converse-overlayed { &.converse-overlayed {
......
...@@ -2,16 +2,23 @@ ...@@ -2,16 +2,23 @@
"http://www.w3.org/TR/html4/loose.dtd"> "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
<title>Converse.js Tests</title> <title>Converse Tests</title>
<meta name="description" content="Converse.js: A chat client for your website" /> <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="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 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 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> <script data-main="runner" src="../node_modules/requirejs/require.js"></script>
<style>
body {
overflow-y: hidden;
}
</style>
</head> </head>
<body></body> <body></body>
</html> </html>
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
"http://www.w3.org/TR/html4/loose.dtd"> "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
<title>Converse.js Tests</title> <title>Converse Tests</title>
<meta name="description" content="Converse.js: A chat client for your website" /> <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="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 rel="stylesheet" type="text/css" media="screen" href="../node_modules/jasmine-core/lib/jasmine-core/jasmine.css">
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<div id="header_wrap" class="outer"> <div id="header_wrap" class="outer">
<header class="inner"> <header class="inner">
<h1 class="brand-heading tests-brand-heading"> <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> <h2 id="project_tagline">Tests</h2>
</header> </header>
</div> </div>
......
...@@ -211,8 +211,8 @@ var specs = [ ...@@ -211,8 +211,8 @@ var specs = [
require(['console-reporter', 'mock', 'sinon', 'wait-until-promise', 'pluggable'], require(['console-reporter', 'mock', 'sinon', 'wait-until-promise', 'pluggable'],
function(ConsoleReporter, mock, sinon, waitUntilPromise, pluggable) { function(ConsoleReporter, mock, sinon, waitUntilPromise, pluggable) {
if (config.view_mode) { if (window.view_mode) {
mock.view_mode = config.view_mode; mock.view_mode = window.view_mode;
} }
window.sinon = sinon; window.sinon = sinon;
window.waitUntilPromise = waitUntilPromise.default; window.waitUntilPromise = waitUntilPromise.default;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment