angular.js/test
Elliott Sprehn 40d7e66f40 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.
2010-10-26 15:17:57 -07:00
..
scenario Lots of bug fixes in the scenario runner and a bunch of new features. 2010-10-26 15:17:57 -07:00
angular-mocks.js Reverted change 841013a4c4 which does not work on all browsers 2010-10-26 14:25:01 -07:00
AngularSpec.js Lots of bug fixes in the scenario runner and a bunch of new features. 2010-10-26 15:17:57 -07:00
ApiSpecs.js Reverted change 841013a4c4 which does not work on all browsers 2010-10-26 14:25:01 -07:00
BinderTest.js fixed tests 2010-10-19 16:14:16 -07:00
BrowserSpecs.js Reworked the cookie synchronization between cookie service, $browser and document.cookie. 2010-09-27 15:10:05 -07:00
CompilerSpec.js Fixed issue where compiler would pass in detached text node if previous markup would have removed it. 2010-10-12 21:52:04 -07:00
ConsoleTest.js tests failing jstd to show cory 2010-04-08 13:43:40 -07:00
directivesSpec.js create HTML sanitizer to allow inclusion of untrusted HTML in safe manner. 2010-10-26 13:41:07 -07:00
FiltersSpec.js Add TzDate to angular-mocks.js 2010-10-26 13:47:50 -07:00
FormattersTest.js Updated JSTD 2010-10-15 11:58:55 -07:00
InjectorSpec.js Introduced injector and $new to scope, and injection into link methods and controllers 2010-10-12 16:33:06 -07:00
jquery_alias.js happy 2010-05-24 13:54:32 -07:00
jquery_remove.js happy 2010-05-24 13:54:32 -07:00
JsonSpec.js fixed negative numbers in Json 2010-10-20 07:22:15 -07:00
manual.html Workaround for http://bugs.jquery.com/ticket/7292 2010-10-22 22:46:51 -07:00
markupSpec.js fixed test for ng:src which fails on IE, since IE treats undefined src as url to the current page. 2010-09-21 10:37:12 +02:00
ParserSpec.js JSON parser is now strict (ie, expressions are not allowed for security) 2010-10-18 08:50:36 -07:00
ResourceSpec.js Introduced injector and $new to scope, and injection into link methods and controllers 2010-10-12 16:33:06 -07:00
sanitizerSpec.js create HTML sanitizer to allow inclusion of untrusted HTML in safe manner. 2010-10-26 13:41:07 -07:00
ScenarioSpec.js Introduced injector and $new to scope, and injection into link methods and controllers 2010-10-12 16:33:06 -07:00
ScopeSpec.js Introduced injector and $new to scope, and injection into link methods and controllers 2010-10-12 16:33:06 -07:00
servicesSpec.js $cookieStore should not be a global service 2010-10-23 14:22:30 -07:00
testabilityPatch.js create HTML sanitizer to allow inclusion of untrusted HTML in safe manner. 2010-10-26 13:41:07 -07:00
ValidatorsTest.js Introduced injector and $new to scope, and injection into link methods and controllers 2010-10-12 16:33:06 -07:00
widgetsSpec.js Fix for getting into recursive $eval on scope. Close #59 2010-10-23 13:42:11 -07:00