Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update qunit-harness build #2993

Merged
merged 22 commits into from
Feb 16, 2024
Prev Previous commit
Next Next commit
update: test uncommented
  • Loading branch information
bayheck committed Feb 7, 2024
commit c32f64102ed0891f2eace2581025d9acee1d3849
46 changes: 23 additions & 23 deletions test/client/fixtures/sandbox/event/event-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// var browserUtils = hammerhead.utils.browser;
var browserUtils = hammerhead.utils.browser;
var featureDetection = hammerhead.utils.featureDetection;
var eventUtils = hammerhead.utils.event;
var nativeMethods = hammerhead.nativeMethods;
Expand Down Expand Up @@ -249,28 +249,28 @@ asyncTest('handler not the function for addEventListener (T261234)', function ()
divEl.click();
});

// if (browserUtils.isWebKit) {
// asyncTest('the "Illegal invocation" error after svg element focused (#82)', function () {
// var $svgElement = $(
// '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">' +
// '<rect id="rect" width="300" height="300" fill="red" tabIndex="1"></rect>' +
// '</svg>').appendTo('body');

// processDomMeth($svgElement[0]);

// var rectElement = document.getElementById('rect');

// rectElement.onfocus = function () {
// rectElement.onblur = function () {
// ok(true);
// $svgElement.remove();
// start();
// };
// rectElement.blur();
// };
// rectElement.focus();
// });
// }
if (browserUtils.isWebKit) {
asyncTest('the "Illegal invocation" error after svg element focused (#82)', function () {
var $svgElement = $(
'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">' +
'<rect id="rect" width="300" height="300" fill="red" tabIndex="1"></rect>' +
'</svg>').appendTo('body');

processDomMeth($svgElement[0]);

var rectElement = document.getElementById('rect');

rectElement.onfocus = function () {
rectElement.onblur = function () {
ok(true);
$svgElement.remove();
start();
};
rectElement.blur();
};
rectElement.focus();
});
}

test('the click event handler for the svg element must be overridden correctly (B238956)', function () {
var $svg = $('<svg xmlns="http://www.w3.org/2000/svg" version="1.1"></svg>');
Expand Down
Loading