\
@@ -29,4 +31,13 @@ describe('Ionic Angular Slide Box', function() {
var scope = el.scope();
expect(scope.slideBox).not.toBe(undefined);
});
+
+ it('Should update with delegate', function() {
+ var scope = el.scope();
+ var slideBox = scope.slideBox;
+ spyOn(slideBox, 'setup');
+ delegate.update();
+ timeout.flush();
+ expect(slideBox.setup).toHaveBeenCalled();
+ });
});
diff --git a/js/ext/angular/test/slideBoxDynamic.html b/js/ext/angular/test/slideBoxDynamic.html
new file mode 100644
index 0000000000..e0e4c3492c
--- /dev/null
+++ b/js/ext/angular/test/slideBoxDynamic.html
@@ -0,0 +1,89 @@
+
+
+
+
Dynamic Slide Box
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{page.text}}
+
+
+
+
+
+
+
+
+