aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/markups.js6
-rw-r--r--src/scenario/Application.js1
-rw-r--r--src/scenario/dsl.js2
3 files changed, 7 insertions, 2 deletions
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('<iframe>');
frame = this.getFrame_();
frame.load(function() {
diff --git a/src/scenario/dsl.js b/src/scenario/dsl.js
index e9d68f64..60b05cd6 100644
--- a/src/scenario/dsl.js
+++ b/src/scenario/dsl.js
@@ -180,7 +180,7 @@ angular.scenario.dsl('input', function() {
return this.addFutureAction("input '" + this.name + "' enter '" + value + "'", function($window, $document, done) {
var input = $document.elements(':input[name="$1"]', this.name);
input.val(value);
- input.trigger('change');
+ input.trigger('keydown');
done();
});
};