diff options
Diffstat (limited to 'test/markupSpec.js')
| -rw-r--r-- | test/markupSpec.js | 8 |
1 files changed, 8 insertions, 0 deletions
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('<a ng:bind-attr="{"href":"{{url}}","rel":"{{rel}}"}"></a>'); }); + it('should bind Text with no Bindings', function() { + forEach('src,href,checked,disabled,multiple,readonly,selected'.split(','), function(name) { + compile('<div ng:' + name +'="some"></div>'); + expect(sortedHtml(element)).toEqual('<div ng:bind-attr="{"' + name +'":"some"}"></div>'); + dealoc(element); + }); + }) + it('should Parse Text With No Bindings', function(){ var parts = parseBindings("a"); assertEquals(parts.length, 1); |
