import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo

This commit is contained in:
Roy Tam 2018-01-19 03:59:58 +08:00
commit dcd9973243
150858 changed files with 23884658 additions and 0 deletions

View file

@ -0,0 +1,6 @@
"use strict";
module.exports = {
// Extend from the shared list of defined globals for mochitests.
"extends": "../../../../../.eslintrc.mochitests.js",
};

View file

@ -0,0 +1,7 @@
[DEFAULT]
tags = devtools
subsuite = devtools
support-files =
!/devtools/client/framework/test/shared-head.js
[browser_notification_box_basic.js]

View file

@ -0,0 +1,36 @@
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
/* import-globals-from ../../../../framework/test/shared-head.js */
Services.scriptloader.loadSubScript(
"chrome://mochitests/content/browser/devtools/client/framework/test/shared-head.js", this);
const TEST_URI = "data:text/html;charset=utf-8,Test page";
/**
* Basic test that checks existence of the Notification box.
*/
add_task(function* () {
info("Test Notification box basic started");
let toolbox = yield openNewTabAndToolbox(TEST_URI, "webconsole");
// Append a notification
let notificationBox = toolbox.getNotificationBox();
notificationBox.appendNotification(
"Info message",
"id1",
null,
notificationBox.PRIORITY_INFO_HIGH
);
// Verify existence of one notification.
let parentNode = toolbox.doc.getElementById("toolbox-notificationbox");
let nodes = parentNode.querySelectorAll(".notification");
is(nodes.length, 1, "There must be one notification");
});