aboutsummaryrefslogtreecommitdiffstats
path: root/test/widgetsSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-03-24 12:08:48 -0700
committerMisko Hevery2010-03-24 12:08:48 -0700
commit3d3694240034b6841c9fdf2e38a2a7955cb592c7 (patch)
tree6fb92920e56363eef218f0797c3d11b686f8ea8f /test/widgetsSpec.js
parentfd72031e9626b574a4459747c2e0261f69102364 (diff)
parent563a98e4bd0fd9f2277befcfe45ff2d0476878d8 (diff)
downloadangular.js-3d3694240034b6841c9fdf2e38a2a7955cb592c7.tar.bz2
merge
Diffstat (limited to 'test/widgetsSpec.js')
-rw-r--r--test/widgetsSpec.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js
new file mode 100644
index 00000000..3b6be8ec
--- /dev/null
+++ b/test/widgetsSpec.js
@@ -0,0 +1,28 @@
+describe("widgets", function(){
+
+ var compile, element, scope;
+
+ beforeEach(function() {
+ scope = null;
+ element = null;
+ var compiler = new Compiler(angularTextMarkup, angularAttrMarkup, angularDirective, angularWidget);
+ compile = function(html) {
+ element = jqLite(html);
+ var view = compiler.compile(element)(element);
+ view.init();
+ scope = view.scope;
+ };
+ });
+
+ afterEach(function(){
+ if (element) {
+ element.remove();
+ }
+ expect(_(jqCache).size()).toEqual(0);
+ });
+
+ it('should fail', function(){
+ fail('iueoi');
+ });
+
+});