From 62c0e5c46091d8b98a20c31ab26e715bad574bae Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Tue, 26 Oct 2010 22:02:24 -0700 Subject: Fix failing tests for ie, and mark elements as ng-widget, ng-directive, and ng-binding --- docs/filter:currency.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/filter:currency.html (limited to 'docs/filter:currency.html') diff --git a/docs/filter:currency.html b/docs/filter:currency.html new file mode 100644 index 00000000..bd277bb8 --- /dev/null +++ b/docs/filter:currency.html @@ -0,0 +1,21 @@ +

filter:currency

+ +

formats a number as a currency (ie $1,234.56)

+ +

@format expression | currency

+ +

+
+{{amount | currency}} +

+ +

+ it('should init with 1234.56', function(){ + expect(bind('amount')).toEqual('$1,234.56'); + }); + it('should update', function(){ + element(':input[name=amount]').value('-1234'); + expect(bind('amount')).toEqual('-$1,234.00'); + expect(bind('amount')).toHaveColor('red'); + }); +

-- cgit v1.2.3