Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/browser/elemHideEmulation.js

Issue 29995559: Issue 7236 - Handle sub properties in abort-on-property snippets (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: tweak property names Created March 20, 2019, 4:18 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/browser/_utils.js ('k') | test/browser/snippets.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/browser/elemHideEmulation.js
===================================================================
--- a/test/browser/elemHideEmulation.js
+++ b/test/browser/elemHideEmulation.js
@@ -14,16 +14,17 @@
* You should have received a copy of the GNU General Public License
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";
const {ElemHideEmulation, setTestMode,
getTestInfo} = require("../../lib/content/elemHideEmulation");
+const {timeout} = require("./_utils");
const REFRESH_INTERVAL = 200;
let testDocument = null;
exports.setUp = function(callback)
{
setTestMode();
@@ -39,24 +40,16 @@
{
let iframe = testDocument.defaultView.frameElement;
iframe.parentNode.removeChild(iframe);
testDocument = null;
callback();
};
-function timeout(delay)
-{
- return new Promise((resolve, reject) =>
- {
- window.setTimeout(resolve, delay);
- });
-}
-
function unexpectedError(test, error)
{
console.error(error);
test.ok(false, "Unexpected error: " + error);
}
function expectHidden(test, element, id)
{
« no previous file with comments | « test/browser/_utils.js ('k') | test/browser/snippets.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld