mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-02 16:19:48 -04:00
Update.
This commit is contained in:
parent
cb5c197994
commit
594653a753
2 changed files with 61 additions and 55 deletions
110
test/styles.less
110
test/styles.less
|
@ -18,75 +18,78 @@
|
||||||
@col-slow: @col-red-800;
|
@col-slow: @col-red-800;
|
||||||
@col-progress: rgba(255,255,255,0.2);
|
@col-progress: rgba(255,255,255,0.2);
|
||||||
|
|
||||||
#mocha-custom {
|
#mocha {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 10000;
|
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
color: @col-white;
|
|
||||||
background: @col-pending;
|
|
||||||
font-family: Roboto, Helvetica, Arial, sans-serif;
|
|
||||||
font-size: 14px;
|
|
||||||
font-weight: bold;
|
|
||||||
line-height: 32px;
|
|
||||||
height: 32px;
|
|
||||||
padding: 0 8px;
|
|
||||||
|
|
||||||
a, a:active, a:visited, a:hover {
|
|
||||||
display: block;
|
|
||||||
color: inherit;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
&.pass {
|
|
||||||
background: @col-pass;
|
|
||||||
}
|
|
||||||
&.fail {
|
|
||||||
background: @col-fail;
|
|
||||||
}
|
|
||||||
.stats {
|
|
||||||
display: block;
|
|
||||||
position: absolute;
|
|
||||||
right: 8px;
|
|
||||||
top: 0;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
.progress {
|
|
||||||
display: block;
|
|
||||||
position: absolute;
|
|
||||||
right: 0;
|
|
||||||
top: 0;
|
|
||||||
height: 100%;
|
|
||||||
background: @col-progress;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#mocha {
|
|
||||||
position: fixed;
|
|
||||||
z-index: 10000;
|
|
||||||
left: 0;
|
|
||||||
top: 32px;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
background: @col-white;
|
z-index: 10000;
|
||||||
overflow-x: auto;
|
|
||||||
overflow-y: scroll;
|
|
||||||
font-family: Roboto, Helvetica, Arial, sans-serif;
|
font-family: Roboto, Helvetica, Arial, sans-serif;
|
||||||
|
background: @col-white;
|
||||||
|
|
||||||
|
#mocha-custom {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
height: 32px;
|
||||||
|
color: @col-white;
|
||||||
|
background: @col-pending;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
line-height: 32px;
|
||||||
|
padding: 0 8px;
|
||||||
|
|
||||||
|
&.pass {
|
||||||
|
background: @col-pass;
|
||||||
|
}
|
||||||
|
&.fail {
|
||||||
|
background: @col-fail;
|
||||||
|
}
|
||||||
|
.stats {
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
right: 8px;
|
||||||
|
top: 0;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.progress {
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
height: 100%;
|
||||||
|
background: @col-progress;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#mocha-stats {
|
#mocha-stats {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#mocha-report {
|
#mocha-report {
|
||||||
max-width: 900px;
|
position: absolute;
|
||||||
margin: 0 auto;
|
left: 0;
|
||||||
padding: 32px;
|
top: 32px;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
overflow-x: auto;
|
||||||
|
overflow-y: scroll;
|
||||||
|
|
||||||
> .suite {
|
> .suite {
|
||||||
margin: 0;
|
margin: 0 auto;
|
||||||
|
padding: 32px;
|
||||||
|
max-width: 900px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a, a:active, a:visited, a:hover {
|
||||||
|
display: block;
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
ul, li, h1, h2 {
|
ul, li, h1, h2 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
@ -107,10 +110,7 @@
|
||||||
background: @col-back-hover;
|
background: @col-back-hover;
|
||||||
}
|
}
|
||||||
a, a:active, a:visited, a:hover {
|
a, a:active, a:visited, a:hover {
|
||||||
display: block;
|
|
||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
color: inherit;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
}
|
||||||
.count {
|
.count {
|
||||||
font-size: 0.85em;
|
font-size: 0.85em;
|
||||||
|
|
|
@ -9,6 +9,12 @@ describe('premisses', function () {
|
||||||
assert.strictEqual(window, window.window);
|
assert.strictEqual(window, window.window);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('document is global object', function () {
|
||||||
|
|
||||||
|
assert.isObject(document);
|
||||||
|
assert.strictEqual(document, window.document);
|
||||||
|
});
|
||||||
|
|
||||||
it('jQuery and $ are global objects', function () {
|
it('jQuery and $ are global objects', function () {
|
||||||
|
|
||||||
assert.isFunction(jQuery);
|
assert.isFunction(jQuery);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue