Skip to content

Commit

Permalink
test(supports): IE10 on BrowserStack does not like object element
Browse files Browse the repository at this point in the history
  • Loading branch information
rodneyrehm committed Sep 17, 2016
1 parent fd62c33 commit 88e1af4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
2 changes: 2 additions & 0 deletions src/supports/focus-object-svg-hidden.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

import svg from './media/svg';

// Note: IE10 on BrowserStack does not like this test

export default {
element: 'object',
mutate: function(element) {
Expand Down
2 changes: 2 additions & 0 deletions src/supports/focus-object-svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import svg from './media/svg';
import platform from '../util/platform';

// Note: IE10 on BrowserStack does not like this test

export default {
name: 'can-focus-object-svg',
element: 'object',
Expand Down
4 changes: 3 additions & 1 deletion test/functional/element.disabled.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ define(function(require) {

.skipPlatform(this, function(platform) {
return platform.is.IE10;
}, 'This Test will not run on BrowserStack in IE10');
}, 'This Test will not run on BrowserStack in IE10')

.execute('window.disableElements();');
});

bdd.it('should skip disabled elements', function() {
Expand Down
14 changes: 8 additions & 6 deletions test/pages/element.disabled.test.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,14 @@ <h1>Element Disabled</h1>
], function(platform, queryFocusable, elementDisabled) {
window.platform = platform;

queryFocusable({
context: '#container',
strategy: 'all',
}).forEach(function(element) {
elementDisabled(element, true);
});
window.disableElements = function() {
queryFocusable({
context: '#container',
strategy: 'all',
}).forEach(function(element) {
elementDisabled(element, true);
});
};
});
</script>
</body>
Expand Down

0 comments on commit 88e1af4

Please sign in to comment.