aboutsummaryrefslogtreecommitdiffstats
path: root/css
diff options
context:
space:
mode:
authorElliott Sprehn2010-10-24 14:14:45 -0700
committerIgor Minar2010-10-26 15:17:57 -0700
commit40d7e66f408eaaa66efd8d7934ab2eb3324236a1 (patch)
treedaf88d70df9037416598307784eb83df93df4fed /css
parent1d52349440d40de527b5d7f3849070f525c1b79b (diff)
downloadangular.js-40d7e66f408eaaa66efd8d7934ab2eb3324236a1.tar.bz2
Lots of bug fixes in the scenario runner and a bunch of new features.
- By default the runner now creates multiple output formats as it runs. Nodes are created in the DOM with ids: json, xml, and html. ex. $('#json').html() => json output of the runner ex. $('#xml').html() => json output of the runner $result is also an object tree result. The permitted formats are html,json,xml,object. If you don't want certain formats you can select specific ones with the new ng:scenario-output attribute on the script tag. <script src="angular-scenario.js" ng:scenario-output="xml,json"> - Added element(...).count() that returns the number of matching elements for the selector. - repeater(...).count() now returns 0 if no elements matched which can be used to check if a repeater is empty. - Added toBe() matcher that does strict equality with === - Implement iit and ddescribe. If iit() is used instead of it() then only that test will run. If ddescribe() is used instead of describe() them only it() statements inside of it will run. Several iit/ddescribe() blocks can be used to run isolated tests. - Implement new event based model for SpecRunner. You can now listen for events in the runner. This is useful for writing your own UI or connecting a remote process (ex. WebDriver). Event callbacks execute on the Runner instance. Events, if fired, will always be in the below order. All events always happen except for Failure and Error events which only happen in error conditions. Events: RunnerBegin SpecBegin(spec) StepBegin(spec, step) StepError(spec, step, error) StepFailure(spec, step, error) StepEnd(spec, step) SpecError(spec, step, error) SpecEnd(spec) RunnerEnd - Only allow the browser to repaint every 10 steps. Cuts 700ms off Firefox in benchmark, 200ms off Chrome. - Bug Fix: Manually navigate anchors on click since trigger wont work in Firefox.
Diffstat (limited to 'css')
-rw-r--r--css/angular-scenario.css24
1 files changed, 16 insertions, 8 deletions
diff --git a/css/angular-scenario.css b/css/angular-scenario.css
index adadebb0..f5cded7f 100644
--- a/css/angular-scenario.css
+++ b/css/angular-scenario.css
@@ -8,6 +8,10 @@ body {
font-size: 14px;
}
+#json, #xml {
+ display: none;
+}
+
#header {
position: fixed;
width: 100%;
@@ -32,7 +36,7 @@ body {
height: 30px;
}
-#frame h2,
+#application h2,
#specs h2 {
margin: 0;
padding: 0.5em;
@@ -45,26 +49,26 @@ body {
}
#header,
-#frame,
+#application,
.test-info,
.test-actions li {
overflow: hidden;
}
-#frame {
+#application {
margin: 10px;
}
-#frame iframe {
+#application iframe {
width: 100%;
height: 758px;
}
-#frame .popout {
+#application .popout {
float: right;
}
-#frame iframe {
+#application iframe {
border: none;
}
@@ -154,6 +158,10 @@ body {
margin-left: 6em;
}
+.test-describe {
+ padding-bottom: 0.5em;
+}
+
.test-describe .test-describe {
margin: 5px 5px 10px 2em;
}
@@ -178,11 +186,11 @@ body {
}
#specs h2,
-#frame h2 {
+#application h2 {
background-color: #efefef;
}
-#frame {
+#application {
border: 1px solid #BABAD1;
}