aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)Author
2010-11-29Fixed sanitizationMisko Hevery
* explicitly require full URLs (ftp|https?://...) * list the URI attributes * remove a lot of unneeded attributes
2010-11-22Add angular.Array.limitTo and docs for angular.ArrayIgor Minar
2010-11-18move attribute widgets to widgets.js fileIgor Minar
- move @ng:repeat to widgets.js and its specs to widgetsSpecs.js - move @ng:non-bindable to widgets.js and its specs to widgetsSpecs.js - make widget.template suitable for attribute widgets - fix up the js docs for attribute widgets
2010-11-16Changed error handling so that better stack traces are displayed in the ↵Misko Hevery
ng-errors
2010-11-16add onload attribute to ng:includeIgor Minar
2010-11-11$watch should optionally skip listener execIgor Minar
- if initRun param is set to false, listener doesn't execute - the oldValue should equal newValue during the initial execution - added docs - added specs
2010-11-10Make ng:repeat expose $position.Igor Minar
- $position is a textual representation of the position of repeated item ('first', 'middle', 'last') - added specs for $index
2010-11-10added ng:switch-when-default; changed $watch to always fire on init. (may be ↵Misko Hevery
backward incompatible)
2010-11-09added spec for auto bootstrap with #autobindIgor Minar
2010-11-09Support substring matching of bindings with repeater(). Closes #123Elliott Sprehn
2010-11-09Add key/value jQuery methods in a loop. Support 'css' method.Elliott Sprehn
Closes #134
2010-11-09Updated parser tests to use jasmine expectsVojta Jina
And some formatting as well and a bit of rafactor...
2010-11-09Updated filters tests to use jasmine expectsVojta Jina
And some small formatting...
2010-11-08make angular.String.toDate consider all time fractions as optionalIgor Minar
2010-11-08Support ISO 8601 extended datetime format troughout angular.Igor Minar
Support ISO 8601 extended format datetime strings (YYYY-MM-DDTHH:mm:ss.SSSZ) as defined in EcmaScript 5 throughout angular. This means that the following apis switched from YYYY-MM-DDTHH:mm:ssZ to YYYY-MM-DDTHH:mm:ss.SSSZ (note the added millis) when representing dates: - angular.Date.toString - angular.String.toDate - JSON serialization and deserialization (used by json filter, $xhr and $resource)
2010-11-08Add isDate method + fix old codeIgor Minar
2010-11-08fixing spec description for the date filterIgor Minar
2010-11-08date filter should accept ISO 8601 formatted string as inputIgor Minar
Closes #125
2010-11-08TzDate should support various UTC methodsIgor Minar
2010-11-07Update AngularSpec tests to use BDD style - jasmine expectVojta Jina
2010-11-07Added tests for angular.serviceVojta Jina
- should allow to override a service - should preserve angular properties on override - should not preserve non-angular properties on override
2010-11-07Issue #51: Update extensionMap()Vojta Jina
If user override existing extension, angular properties ($) will be preserved. This piece of logic could be refactored into separate method: Something like we have extend(), addMissingProperties() - I can't find a name for this method... Closes #51
2010-11-07Added documentation for validators.Misko Hevery
BACKWARD INCOMPATIBLE: removed ssn validators, since it is unlikely that most people will need it and if they do, they can added it thorough RegExp
2010-11-05Updated toJson() to not serialize window/document objects.Vojta Jina
The reason to void these to objects is that they cause all sorts of problems like exceptions being thrown and infinite loops occuring when we iterate over object properties.
2010-11-05Changed toJson() to not ignore $ propertiesVojta Jina
2010-11-05Json - corrected test descriptions and changed to BDD style expect()Vojta Jina
2010-11-05fix error in json parser which did not allow 1.2E10 as numberMisko Hevery
2010-11-03Serialize RegExp to string in JSON. Closes #119.Elliott Sprehn
2010-11-03fix dslSpec for IEIgor Minar
2010-11-03fix the linky filterMisko Hevery
2010-11-03binding() should return value for input/text area, innerHTML for the restIgor Minar
2010-11-03adding textarea() DSL for scenario runnerIgor Minar
2010-11-03adding regular expressions support for binding() DSLIgor Minar
2010-11-02Provide better sandbox error messages, and disallow running from file:// URLsElliott Sprehn
2010-11-02Make future names consistent and handle falsy values in jQuery generated ↵Elliott Sprehn
methods properly
2010-11-01Add browser().reload() to simulate a refresh from a userElliott Sprehn
2010-11-01Provide browser DSL with location() to expect the iframe URL parts. Also ↵Elliott Sprehn
move navigateTo() under the browser DSL.
2010-10-31Fixing issue #98 (infinite loop when location hash set empty)Vojta Jina
Added tests and fixed the issue. Closes #98
2010-10-29Auto generate all the jQuery get/set methodsElliott Sprehn
2010-10-29Check if file exists (not a 404) and that document is accessible and not ↵Elliott Sprehn
using file:// URLs in Application
2010-10-28add optional label to dsl with selectors to improve test and output readabilityAndres Ornelas
e.g. Before: code: element('.actions ul li a').click(); output: element .actions ul li a click After code: element('.actions ul li a', "'Configuration' link").click(); output: element 'Configuration' link ( .actions ul li a ) click
2010-10-27Correctly fail tests if no binding matches and add better test cases for ↵Elliott Sprehn
failure behavior.
2010-10-27Fix failing tests for ie, and mark elements as ng-widget, ng-directive, and ↵Misko Hevery
ng-binding
2010-10-26adding missing angular-mocksSpec.js fileIgor Minar
2010-10-26fixes IE related failures, and form submit event handling in ieMisko Hevery
2010-10-26Lots of bug fixes in the scenario runner and a bunch of new features.Elliott Sprehn
- 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-26Reverted change 841013a4c4d25acf6fc9ff40e449c3d0a4b82ec3 which does not work ↵Misko Hevery
on all browsers
2010-10-26Add TzDate to angular-mocks.jsIgor Minar
TzDate is a Date-like type that is independent from the timezone settings of the machine on which TzDate instances are created. This property makes it ideal for testing code that deals with timezones in a manner that makes the code portable between timezones. Closes #81
2010-10-26create HTML sanitizer to allow inclusion of untrusted HTML in safe manner.Misko Hevery
Sanitization works in two phases: 1) We parse the HTML into sax-like events (start, end, chars). HTML parsing is very complex, and so it may very well be that what most browser consider valid HTML may not pares properly here, but we do best effort. We treat this parser as untrusted. 2) We have safe sanitizeWriter which treats its input (start, end, chars) as untrusted content and escapes everything. It only allows elements in the whitelist and only allows attributes which are whitelisted. Any attribute value must not start with 'javascript:'. This check is performed after escaping for entity (&xAB; etc..) and ignoring any whitespace. - Correct linky filter to use safeHtmlWriter - Correct html filter to use safeHtmlWriter Close #33; Close #34
2010-10-25Add millisecond support for date filterIgor Minar
Date filter should translate input which is a number (or number string) into a date.