diff --git a/package.json b/package.json index aef2545cb..112d888d5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "testcafe-hammerhead", "description": "A powerful web-proxy used as a core for the TestCafe testing framework (https://github.com/DevExpress/testcafe).", - "version": "9.2.0", + "version": "9.2.1", "homepage": "https://github.com/DevExpress/testcafe-hammerhead", "bugs": { "url": "https://github.com/DevExpress/testcafe-hammerhead/issues" diff --git a/src/processing/style.js b/src/processing/style.js index 85027e796..342360948 100644 --- a/src/processing/style.js +++ b/src/processing/style.js @@ -19,8 +19,8 @@ const STYLESHEET_PROCESSING_COMMENTS_RE = new RegExp(`^\\s*${ reEscape(STYLESH class StyleProcessor { constructor () { - this.STYLESHEET_TEXT_START_COMMENT = STYLESHEET_PROCESSING_START_COMMENT; - this.STYLESHEET_TEXT_END_COMMENT = STYLESHEET_PROCESSING_END_COMMENT; + this.STYLESHEET_PROCESSING_START_COMMENT = STYLESHEET_PROCESSING_START_COMMENT; + this.STYLESHEET_PROCESSING_END_COMMENT = STYLESHEET_PROCESSING_END_COMMENT; } process (css, urlReplacer, isStylesheetTable) { diff --git a/test/client/fixtures/sandbox/node/document-write-test.js b/test/client/fixtures/sandbox/node/document-write-test.js index b25713379..b7494a4fe 100644 --- a/test/client/fixtures/sandbox/node/document-write-test.js +++ b/test/client/fixtures/sandbox/node/document-write-test.js @@ -141,9 +141,9 @@ test('write style', function () { strictEqual(getElems(iframeForWrite, 'style').length, getElems(iframeForNativeWrite, 'style').length); strictEqual(innerHTML(getElems(iframeForWrite, 'style')[0], true), innerHTML(getElems(iframeForNativeWrite, 'style')[0])); - strictEqual(innerHTML(getElems(iframeForWrite, 'style')[0]), styleProcessor.STYLESHEET_TEXT_START_COMMENT + + strictEqual(innerHTML(getElems(iframeForWrite, 'style')[0]), styleProcessor.STYLESHEET_PROCESSING_START_COMMENT + '\n\ndiv {}\n\n' + - styleProcessor.STYLESHEET_TEXT_END_COMMENT); + styleProcessor.STYLESHEET_PROCESSING_END_COMMENT); strictEqual(innerHTML(getElems(iframeForWrite, 'style')[1], true), innerHTML(getElems(iframeForNativeWrite, 'style')[1])); strictEqual(innerHTML(getElems(iframeForWrite, 'style')[1]), ''); diff --git a/test/client/fixtures/sandbox/node/dom-processor-test.js b/test/client/fixtures/sandbox/node/dom-processor-test.js index 94fced6dc..3eb779e9a 100644 --- a/test/client/fixtures/sandbox/node/dom-processor-test.js +++ b/test/client/fixtures/sandbox/node/dom-processor-test.js @@ -335,8 +335,8 @@ test('stylesheet after innerHTML', function () { nativeMethods.appendChild.call(document.body, style); var check = function (cssText) { - strictEqual(cssText.indexOf(styleProcessor.STYLESHEET_TEXT_START_COMMENT), 0); - strictEqual(cssText.indexOf(styleProcessor.STYLESHEET_TEXT_START_COMMENT, 1), -1); + strictEqual(cssText.indexOf(styleProcessor.STYLESHEET_PROCESSING_START_COMMENT), 0); + strictEqual(cssText.indexOf(styleProcessor.STYLESHEET_PROCESSING_START_COMMENT, 1), -1); strictEqual(cssText.replace(/^[\s\S]+url\(([\s\S]+)\)[\s\S]+$/, '$1'), urlUtils.getProxyUrl('http://domain.com')); };