projects
/
angular-drzb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
022d92d
)
my-input
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 20 Jan 2013 21:27:13 +0000
(22:27 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 20 Jan 2013 21:27:13 +0000
(22:27 +0100)
test/unit/directivesSpec.js
patch
|
blob
|
history
diff --git
a/test/unit/directivesSpec.js
b/test/unit/directivesSpec.js
index
6061842
..
e4b3545
100644
(file)
--- a/
test/unit/directivesSpec.js
+++ b/
test/unit/directivesSpec.js
@@
-16,4
+16,18
@@
describe('directives', function() {
});
});
});
+
+ describe('my-input', function() {
+ it('div+label+input', function() {
+ module(function($provide) {
+ $provide.value('version', 'TEST_VER');
+ });
+ inject(function($compile, $rootScope) {
+ var element = $compile('<div><input class="my-input" ng-model="m" placeholder="p"></input></div>')($rootScope);
+ dump(element.html());
+ console.log( element );
+ expect(element.html()).toMatch(/div.*label.*input.*div/);
+ });
+ });
+ });
});