mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-01-13 08:59:54 +08:00
Polish the Scenario Runner UI to include: - a scroll pane that steps appear in since the list can be very long - Collapse successful tests - Show the line where the DSL statements were when there's an error (Chrome, Firefox) Also: - Remove lots angular.bind calls to reduce the amount of stack space used. - Use setTimeout(...,0) to schedule the next future to let the browser breathe and have it repaint the steps. Also prevents overflowing the stack when an it() creates many futures. - Run afterEach() handlers even if the it() block fails. - Make navigateTo() take a function as the second argument so you can compute a URL in the future. - Add wait() DSL statement to allow interactive debugging of tests. - Allow custom jQuery selectors with element(...).query(fn) DSL statement. Known Issues: - All afterEach() handlers run even if a beforeEach() handler fails. Only after handlers for the same level as the failure and above should run.
235 lines
3.1 KiB
CSS
235 lines
3.1 KiB
CSS
@charset "UTF-8";
|
|
/* CSS Document */
|
|
|
|
/** Structure */
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
margin: 0;
|
|
font-size: 14px;
|
|
}
|
|
|
|
#header {
|
|
position: fixed;
|
|
width: 100%;
|
|
}
|
|
|
|
#specs {
|
|
padding-top: 50px;
|
|
}
|
|
|
|
#header .angular {
|
|
font-family: Courier New, monospace;
|
|
font-weight: bold;
|
|
}
|
|
|
|
#header h1 {
|
|
font-weight: normal;
|
|
float: left;
|
|
font-size: 30px;
|
|
line-height: 30px;
|
|
margin: 0;
|
|
padding: 10px 10px;
|
|
height: 30px;
|
|
}
|
|
|
|
#frame h2,
|
|
#specs h2 {
|
|
margin: 0;
|
|
padding: 0.5em;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
#status-legend {
|
|
margin-top: 10px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
#header,
|
|
#frame,
|
|
.test-info,
|
|
.test-actions li {
|
|
overflow: hidden;
|
|
}
|
|
|
|
#frame {
|
|
margin: 10px;
|
|
}
|
|
|
|
#frame iframe {
|
|
width: 100%;
|
|
height: 758px;
|
|
}
|
|
|
|
#frame .popout {
|
|
float: right;
|
|
}
|
|
|
|
#frame iframe {
|
|
border: none;
|
|
}
|
|
|
|
.tests li,
|
|
.test-actions li,
|
|
.test-it li,
|
|
.test-it ol,
|
|
.status-display {
|
|
list-style-type: none;
|
|
}
|
|
|
|
.tests,
|
|
.test-it ol,
|
|
.status-display {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.test-info {
|
|
margin-left: 1em;
|
|
margin-top: 0.5em;
|
|
border-radius: 8px 0 0 8px;
|
|
-webkit-border-radius: 8px 0 0 8px;
|
|
-moz-border-radius: 8px 0 0 8px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.test-info:hover .test-name {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.test-info .closed:before {
|
|
content: '\25b8\00A0';
|
|
}
|
|
|
|
.test-info .open:before {
|
|
content: '\25be\00A0';
|
|
font-weight: bold;
|
|
}
|
|
|
|
.test-it ol {
|
|
margin-left: 2.5em;
|
|
}
|
|
|
|
.status-display,
|
|
.status-display li {
|
|
float: right;
|
|
}
|
|
|
|
.status-display li {
|
|
padding: 5px 10px;
|
|
}
|
|
|
|
.timer-result,
|
|
.test-title {
|
|
display: inline-block;
|
|
margin: 0;
|
|
padding: 4px;
|
|
}
|
|
|
|
.test-actions .test-title,
|
|
.test-actions .test-result {
|
|
display: table-cell;
|
|
padding-left: 0.5em;
|
|
padding-right: 0.5em;
|
|
}
|
|
|
|
.test-actions {
|
|
display: table;
|
|
}
|
|
|
|
.test-actions li {
|
|
display: table-row;
|
|
}
|
|
|
|
.timer-result {
|
|
width: 4em;
|
|
padding: 0 10px;
|
|
text-align: right;
|
|
font-family: monospace;
|
|
}
|
|
|
|
.test-it pre,
|
|
.test-actions pre {
|
|
clear: left;
|
|
color: black;
|
|
margin-left: 6em;
|
|
}
|
|
|
|
.test-describe .test-describe {
|
|
margin: 5px 5px 10px 2em;
|
|
}
|
|
|
|
.test-actions .status-pending .test-title:before {
|
|
content: '\00bb\00A0';
|
|
}
|
|
|
|
.scrollpane {
|
|
max-height: 20em;
|
|
overflow: auto;
|
|
}
|
|
|
|
/** Colors */
|
|
|
|
#header {
|
|
background-color: #F2C200;
|
|
}
|
|
|
|
#specs h2 {
|
|
border-top: 2px solid #BABAD1;
|
|
}
|
|
|
|
#specs h2,
|
|
#frame h2 {
|
|
background-color: #efefef;
|
|
}
|
|
|
|
#frame {
|
|
border: 1px solid #BABAD1;
|
|
}
|
|
|
|
.test-describe .test-describe {
|
|
border-left: 1px solid #BABAD1;
|
|
border-right: 1px solid #BABAD1;
|
|
border-bottom: 1px solid #BABAD1;
|
|
}
|
|
|
|
.status-display {
|
|
border: 1px solid #777;
|
|
}
|
|
|
|
.status-display .status-pending,
|
|
.status-pending .test-info {
|
|
background-color: #F9EEBC;
|
|
}
|
|
|
|
.status-display .status-success,
|
|
.status-success .test-info {
|
|
background-color: #B1D7A1;
|
|
}
|
|
|
|
.status-display .status-failure,
|
|
.status-failure .test-info {
|
|
background-color: #FF8286;
|
|
}
|
|
|
|
.status-display .status-error,
|
|
.status-error .test-info {
|
|
background-color: black;
|
|
color: white;
|
|
}
|
|
|
|
.test-actions .status-success .test-title {
|
|
color: #30B30A;
|
|
}
|
|
|
|
.test-actions .status-failure .test-title {
|
|
color: #DF0000;
|
|
}
|
|
|
|
.test-actions .status-error .test-title {
|
|
color: black;
|
|
}
|
|
|
|
.test-actions .timer-result {
|
|
color: #888;
|
|
}
|