Skip to content

Commit

Permalink
Merge pull request #299 from miherlosev/i_298
Browse files Browse the repository at this point in the history
change the first character of the test name to lowercase (close #298)
  • Loading branch information
churkin committed Nov 27, 2015
2 parents 6fcaf16 + ed67482 commit 8a3fe5d
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ QUnit.testDone(function () {
iframeSandbox.off(iframeSandbox.IFRAME_READY_TO_INIT_EVENT, initIframeTestHandler);
});

test('Is anchor instance', function () {
test('is anchor instance', function () {
var anchor = document.createElement('a');

ok(accessors.protocol.condition(anchor));
});

test('Is dom element instance', function () {
test('is dom element instance', function () {
var img = document.createElement('img');
var fragment = document.createDocumentFragment();
var notDomElement = {
Expand All @@ -32,7 +32,7 @@ test('Is dom element instance', function () {
ok(!accessors.src.condition(document), 'Document isn\'t dom element');
});

test('Is document instance', function () {
test('is document instance', function () {
var savedGetProxyUrl = urlUtils.getProxyUrl;
var fakeDoc = {
referrer: ''
Expand All @@ -48,7 +48,7 @@ test('Is document instance', function () {
urlUtils.getProxyUrl = savedGetProxyUrl;
});

test('Is window instance', function () {
test('is window instance', function () {
var savedGetProxyUrl = urlUtils.getProxyUrl;
var fakeWin = {
location: ''
Expand All @@ -64,7 +64,7 @@ test('Is window instance', function () {
urlUtils.getProxyUrl = savedGetProxyUrl;
});

test('Is location instance', function () {
test('is location instance', function () {
var savedGetProxyUrl = urlUtils.getProxyUrl;
var fakeLocation = {
href: ''
Expand Down
4 changes: 2 additions & 2 deletions test/client/fixtures/sandbox/event/event-simulator-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ if (browserUtils.isIE) {
}

if (!browserUtils.isFirefox) {
asyncTest('Window event should not be undefined inside iframe handler (B254199)', function () {
asyncTest('window event should not be undefined inside iframe handler (B254199)', function () {
var iframeSrc = window.QUnitGlobals.getResourceUrl('../../../data/event-sandbox/event-simulator.html');
var $iframe = $('<iframe>')
.attr('src', iframeSrc)
Expand All @@ -338,7 +338,7 @@ if (!browserUtils.isFirefox) {
});
});

asyncTest('Window.event becomes empty when a click event handler triggers the click event on a different element in IE11 (GH-226)', function () {
asyncTest('window.event becomes empty when a click event handler triggers the click event on a different element in IE11 (GH-226)', function () {
var iframeSrc = window.QUnitGlobals.getResourceUrl('../../../data/event-sandbox/event-simulator.html');
var $iframe = $('<iframe>')
.attr('src', iframeSrc)
Expand Down
4 changes: 2 additions & 2 deletions test/client/fixtures/sandbox/event/event-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ asyncTest('handler not the function for addEventListener (T261234)', function ()
});

if (browserUtils.isWebKit) {
asyncTest('The "Illegal invocation" error after svg element focused (#82)', function () {
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>' +
Expand All @@ -369,7 +369,7 @@ if (browserUtils.isWebKit) {
});
}

test('The click event handler for the svg element must be overridden correctly (B238956)', function () {
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>');
var clickCount = 0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ asyncTest('error on the http://phonejs.devexpress.com/Demos/?url=KitchenSink&sm=
});
});

asyncTest('Scrolling elements with "overflow=hidden" should be restored after focus (GH-221)', function () {
asyncTest('scrolling elements with "overflow=hidden" should be restored after focus (GH-221)', function () {
var parentDiv = document.createElement('div');
var childContainer = document.createElement('div');
var childDiv = document.createElement('div');
Expand Down
12 changes: 6 additions & 6 deletions test/client/fixtures/sandbox/node/dom-processor-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ test('stylesheet after innerHTML', function () {

module('regression');

test('Remove the "integrity" attribute from the link and script tags (GH-235)', function () {
test('remove the "integrity" attribute from the link and script tags (GH-235)', function () {
var script = nativeMethods.createElement.call(document, 'script');
var link = nativeMethods.createElement.call(document, 'link');

Expand Down Expand Up @@ -362,7 +362,7 @@ test('iframe with javascript protocol in \'src\' attribute value must be process
strictEqual(storedSrcAttr, src);
});

test('The URL attribute must be set to an empty string on the server only once (T295078) (GH-159)', function () {
test('the URL attribute must be set to an empty string on the server only once (T295078) (GH-159)', function () {
var iframe = nativeMethods.createElement.call(document, 'iframe');

nativeMethods.setAttribute.call(iframe, 'src', '/should_not_be_changed');
Expand All @@ -376,7 +376,7 @@ test('The URL attribute must be set to an empty string on the server only once (
strictEqual(nativeMethods.getAttribute.call(iframe, 'src'), '/should_not_be_changed');
});

test('Remove the meta tag with http-equiv="Content-Security-Policy" attribute from document (GH-243)', function () {
test('remove the meta tag with http-equiv="Content-Security-Policy" attribute from document (GH-243)', function () {
var metaTag = nativeMethods.createElement.call(document, 'meta');

nativeMethods.setAttribute.call(metaTag, 'http-equiv', 'Content-Security-Policy');
Expand All @@ -388,7 +388,7 @@ test('Remove the meta tag with http-equiv="Content-Security-Policy" attribute fr
ok(!metaTag.hasAttribute('content'));
});

test('Remove the meta tag with http-equiv="Content-Security-Policy" attribute from document (tag properties added via setAttribute) (GH-243)', function () {
test('remove the meta tag with http-equiv="Content-Security-Policy" attribute from document (tag properties added via setAttribute) (GH-243)', function () {
var metaTag = document.createElement('meta');

metaTag.setAttribute('id', 'metaContentSecurityPolicy');
Expand All @@ -401,7 +401,7 @@ test('Remove the meta tag with http-equiv="Content-Security-Policy" attribute fr
metaTag.parentNode.removeChild(metaTag);
});

test('Script and style content added via a child text node must be overridden (GH-259)', function () {
test('script and style content added via a child text node must be overridden (GH-259)', function () {
var style = document.createElement('style');
var styleTextNode1 = document.createTextNode('div.class1 { background-image: url("/image1.png"); }');
var styleTextNode2 = document.createTextNode('div.class2 { background-image: url("/image2.png"); }');
Expand All @@ -421,7 +421,7 @@ test('Script and style content added via a child text node must be overridden (G
ok(script.childNodes[0].data.indexOf('var host2=__get$(__get$Loc(location),"host")') > -1);
});

test('Node.replaceChild must be overridden (GH-264)', function () {
test('node.replaceChild must be overridden (GH-264)', function () {
var style = document.createElement('style');
var styleTextNode1 = document.createTextNode('div.class1 { background-image: url("/image1.png"); }');
var styleTextNode2 = document.createTextNode('div.class2 { background-image: url("/image2.png"); }');
Expand Down
2 changes: 1 addition & 1 deletion test/client/fixtures/sandbox/node/window-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var isWorkerFromBlobSupported = (function () {
})();

if (isWorkerFromBlobSupported) {
asyncTest('Blob should try to process data as a script even if the content type is not passed (GH-231)', function () {
asyncTest('blob should try to process data as a script even if the content type is not passed (GH-231)', function () {
var script = 'var obj = {}, prop = "prop"; obj[prop] = true; postMessage(true);';
var blobURL = URL.createObjectURL(new Blob([script]));

Expand Down
2 changes: 1 addition & 1 deletion test/client/fixtures/sandbox/shadow-ui-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ asyncTest('after clean up iframe.body.innerHtml ShadowUI\'s root must exist (T22
$iframe.appendTo('body');
});

test('ShadowUI\'s root must be the last child after adding a new element (T239689)', function () {
test('shadowUI\'s root must be the last child after adding a new element (T239689)', function () {
var root = shadowUI.getRoot();
var bodyChildrenCount = document.body.children.length;

Expand Down
2 changes: 1 addition & 1 deletion test/client/fixtures/sandbox/xhr-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ asyncTest('unsupported protocol', function () {

module('regression');

asyncTest('Unexpected text modifying during typing text in the search input on the http://www.google.co.uk (B238528)', function () {
asyncTest('unexpected text modifying during typing text in the search input on the http://www.google.co.uk (B238528)', function () {
var timeout = 100;

var ready = function () {
Expand Down
8 changes: 4 additions & 4 deletions test/client/fixtures/transport-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ asyncTest('batchUpdate - with stored messages', function () {
});

if (!browserUtils.isWebKit) {
asyncTest('Resend aborted async service msg', function () {
asyncTest('resend aborted async service msg', function () {
var xhrCount = 0;
var callbackCount = 0;

Expand Down Expand Up @@ -180,7 +180,7 @@ if (!browserUtils.isWebKit) {
});
}
else {
asyncTest('Resend aborted async service msg (WebKit)', function () {
asyncTest('resend aborted async service msg (WebKit)', function () {
settings.get().sessionId = '%%%testUid%%%';

var xhrCount = 0;
Expand Down Expand Up @@ -222,7 +222,7 @@ else {
}, 200);
});

asyncTest('Do not dublicate messages in store (WebKit)', function () {
asyncTest('do not dublicate messages in store (WebKit)', function () {
settings.get().sessionId = '%%%testUid%%%';

var callbackCount = 0;
Expand Down Expand Up @@ -268,7 +268,7 @@ else {

module('regression');

test('Hammerhead should remove service data from local storage on the first session page load (GH-100)', function () {
test('hammerhead should remove service data from local storage on the first session page load (GH-100)', function () {
var sessionId = settings.get().sessionId;

// NOTE: First page loading.
Expand Down
8 changes: 4 additions & 4 deletions test/client/fixtures/utils/dom-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ test('isHammerheadAttr', function () {

module('regression');

test('IsDomElement for <object> tag (B252941)', function () {
test('isDomElement for <object> tag (B252941)', function () {
var objectElement = document.createElement('object');

document.body.appendChild(objectElement);
Expand All @@ -404,7 +404,7 @@ test('IsDomElement for <object> tag (B252941)', function () {
objectElement.parentNode.removeChild(objectElement);
});

test('IsDomElement for object that simulate HTMLInputElement (T230802)', function () {
test('isDomElement for object that simulate HTMLInputElement (T230802)', function () {
/* eslint-disable no-unused-vars */
var obj = {
size: null,
Expand All @@ -417,7 +417,7 @@ test('IsDomElement for object that simulate HTMLInputElement (T230802)', functio
/* eslint-enable no-unused-vars */
});

test('IsDomElement for plain object (T198784)', function () {
test('isDomElement for plain object (T198784)', function () {
/* eslint-disable no-unused-vars */
var obj = {
target: 'ok',
Expand All @@ -428,7 +428,7 @@ test('IsDomElement for plain object (T198784)', function () {
/* eslint-enable no-unused-vars */
});

asyncTest('Cross domain iframe that contains iframe without src should not throw the security error (GH-114)', function () {
asyncTest('cross domain iframe that contains iframe without src should not throw the security error (GH-114)', function () {
var iframe = document.createElement('iframe');

iframe.src = window.getCrossDomainPageUrl('../../data/cross-domain/page-with-iframe-with-js-protocol.html');
Expand Down

0 comments on commit 8a3fe5d

Please sign in to comment.