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

Unified Diff: lib/notification.js

Issue 29332044: Issue 3381 - notification unit tests are broken (Closed)
Patch Set: Created Dec. 7, 2015, 3:27 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/notification.js
===================================================================
--- a/lib/notification.js
+++ b/lib/notification.js
@@ -21,23 +21,23 @@
Cu.import("resource://gre/modules/Services.jsm");
-let {Prefs} = require("prefs");
-let {Downloader, Downloadable, MILLIS_IN_MINUTE, MILLIS_IN_HOUR, MILLIS_IN_DAY} = require("downloader");
-let {Utils} = require("utils");
-let {Matcher, defaultMatcher} = require("matcher");
-let {Filter, RegExpFilter, WhitelistFilter} = require("filterClasses");
+var {Prefs} = require("prefs");
+var {Downloader, Downloadable, MILLIS_IN_MINUTE, MILLIS_IN_HOUR, MILLIS_IN_DAY} = require("downloader");
+var {Utils} = require("utils");
+var {Matcher, defaultMatcher} = require("matcher");
+var {Filter, RegExpFilter, WhitelistFilter} = require("filterClasses");
-let INITIAL_DELAY = 1 * MILLIS_IN_MINUTE;
-let CHECK_INTERVAL = 1 * MILLIS_IN_HOUR;
-let EXPIRATION_INTERVAL = 1 * MILLIS_IN_DAY;
-let TYPE = {
+var INITIAL_DELAY = 1 * MILLIS_IN_MINUTE;
+var CHECK_INTERVAL = 1 * MILLIS_IN_HOUR;
+var EXPIRATION_INTERVAL = 1 * MILLIS_IN_DAY;
+var TYPE = {
information: 0,
question: 1,
critical: 2
};
-let showListeners = [];
-let questionListeners = {};
+var showListeners = [];
+var questionListeners = {};
function getNumericalSeverity(notification)
{
@@ -67,14 +67,14 @@
* The object providing actual downloading functionality.
* @type Downloader
*/
-let downloader = null;
-let localData = [];
+var downloader = null;
+var localData = [];
/**
* Regularly fetches notifications and decides which to show.
* @class
*/
-let Notification = exports.Notification =
+var Notification = exports.Notification =
{
/**
* Called on module startup.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld