From 5927b23ef35736ec075e226c32d46decb5d42e34 Mon Sep 17 00:00:00 2001 From: Di Peng Date: Thu, 25 Aug 2011 16:31:00 -0700 Subject: fix(markup): Make special attrs such as ng:href work even without binding - special attrs such as ng:href, ng:check did not work as intended when their values do not contain bindings. And this commit is to fix that Closes #534 --- test/markupSpec.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/markupSpec.js') diff --git a/test/markupSpec.js b/test/markupSpec.js index 36861e17..ea786395 100644 --- a/test/markupSpec.js +++ b/test/markupSpec.js @@ -154,6 +154,14 @@ describe("markups", function(){ expect(sortedHtml(element)).toEqual(''); }); + it('should bind Text with no Bindings', function() { + forEach('src,href,checked,disabled,multiple,readonly,selected'.split(','), function(name) { + compile('
'); + expect(sortedHtml(element)).toEqual(''); + dealoc(element); + }); + }) + it('should Parse Text With No Bindings', function(){ var parts = parseBindings("a"); assertEquals(parts.length, 1); -- cgit v1.2.3