From e83465c362c53ac7451183a775456f3112262f6e Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Mon, 23 May 2011 14:17:55 -0700 Subject: Fix scenario runner on IE7, IE8 * add ng:disabled, ng:checked, ng:multiple, ng:readonly, ng:selected * fetch fixed cookbook/advancedform (use ng:disabled) * fire keydown instead of change on input * remove frame when test finishes --- src/markups.js | 6 +++++- src/scenario/Application.js | 1 + src/scenario/dsl.js | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/markups.js b/src/markups.js index 5e240a92..7edde728 100644 --- a/src/markups.js +++ b/src/markups.js @@ -236,7 +236,11 @@ angularTextMarkup('option', function(text, textNode, parentElement){ */ var NG_BIND_ATTR = 'ng:bind-attr'; -var SPECIAL_ATTRS = {'ng:src': 'src', 'ng:href': 'href'}; +var SPECIAL_ATTRS = {}; +forEach('src,href,checked,disabled,multiple,readonly,selected'.split(','), function(name) { + SPECIAL_ATTRS['ng:' + name] = name; +}); + angularAttrMarkup('{{}}', function(value, name, element){ // don't process existing attribute markup if (angularDirective(name) || angularDirective("@" + name)) return; diff --git a/src/scenario/Application.js b/src/scenario/Application.js index b2c372de..c94581e2 100644 --- a/src/scenario/Application.js +++ b/src/scenario/Application.js @@ -58,6 +58,7 @@ angular.scenario.Application.prototype.navigateTo = function(url, loadFn, errorF this.executeAction(loadFn); } else { frame.css('display', 'none').attr('src', 'about:blank'); + frame.remove(); this.context.find('#test-frames').append('