CSS样式  |  107行  |  1.41 KB

/* Copyright (c) 2013 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#test-harness h1 {
  counter-reset: suite-count;
  margin-bottom: 0;
  margin-top: 0;
}

#test-harness h1 a {
  color: black;
  text-decoration: none;
}

#stats {
  margin-bottom: 10px;
}

#exceptions,
#messages {
  display: none;
}

#exceptions[hasExceptions],
#messages[hasMessages] {
  display: block;
}

#messages {
  margin-bottom: 20px;
}

#message-list {
  color: orange;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#message-list h1 {
  font-size: 1em;
}

#exception-list {
  font-family: dejavu sans mono, monospace;
  font-size: 11px;
}

#exception-list pre {
  margin-top: 0;
}

#individual-tests {
  margin-bottom: 20px;
}

.test-result:nth-child(2n),
.individual-result:nth-child(2n) {
  background-color: #eee;
}

.individual-result pre {
  overflow-y: auto;
}

.test-result,
.individual-result {
  counter-increment: suite-count;
  padding: 10px 0;
}

.test-result:before,
.individual-result:before {
  content: counter(suite-count) ' -';
  margin-right: 5px;
}

span.results {
  padding-left: 10px;
}

.pending {
  color: orange;
}

.passed {
  color: darkgreen;
}

.failed {
  color: darkred;
  font-weight: bold;
}

.exception {
  color: red;
  font-weight: bold;
}

.failure {
  border: 1px solid grey;
  border-radius: 5px;
  padding: 5px;
}