aboutsummaryrefslogtreecommitdiffstats
path: root/test/testabilityPatch.js
diff options
context:
space:
mode:
authorMisko Hevery2010-04-05 11:46:53 -0700
committerMisko Hevery2010-04-05 11:46:53 -0700
commit7a4b48020688060debe9cb0f9c17615d7585cbe7 (patch)
tree48a5b1d8cf92bb272028a106ab9ea3ec16f477a2 /test/testabilityPatch.js
parent4bfa4e230d5ebdd582068effe7f4f1b60c43093a (diff)
downloadangular.js-7a4b48020688060debe9cb0f9c17615d7585cbe7.tar.bz2
added ng:switch widget
Diffstat (limited to 'test/testabilityPatch.js')
-rw-r--r--test/testabilityPatch.js40
1 files changed, 0 insertions, 40 deletions
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js
index 752f8ef2..b2ee5526 100644
--- a/test/testabilityPatch.js
+++ b/test/testabilityPatch.js
@@ -5,46 +5,6 @@ function nakedExpect(obj) {
return expect(angular.fromJson(angular.toJson(obj)));
}
-swfobject = {
- createSwf:function() {
- fail("must mock out swfobject.createSwf in test.");
- }
-};
-
-function html(content) {
- return jQuery("<div></div>").html(content);
-}
-
-function report(reportTest){
- $("#tests").children().each(function(i){
- var success = this.className == "pass";
- var strong = this.firstChild;
- var msg = strong.firstChild.nodeValue;
- var parts = msg.split(" module: ");
- var module = parts[0];
- var name = parts[1].replace(/ *$/, "");
- reportTest(success, module, name, this.nodeValue);
- });
-}
-
-function MockBrowser() {
- this.url = "http://server";
- this.watches = [];
-}
-MockBrowser.prototype = {
- getUrl: function(){
- return this.url;
- },
-
- setUrl: function(url){
- this.url = url;
- },
-
- watchUrl: function(fn) {
- this.watches.push(fn);
- }
-};
-
angularService('$browser', function(){
return new MockBrowser();
});