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: more cleanup Created March 20, 2019, 3:09 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
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') | test/browser/snippets.js » ('J')

Powered by Google App Engine
This is Rietveld