mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
messageTray: Remove _fixMarkup() function
Commit053e54f944copied it to calendar, and since commit15e42c4d5, the original is no longer used.
This commit is contained in:
parent
f300462003
commit
01374989b1
2 changed files with 4 additions and 24 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||
|
||||
// Test cases for MessageTray markup parsing
|
||||
// Test cases for Calendar markup parsing
|
||||
|
||||
const JsUnit = imports.jsUnit;
|
||||
const Pango = imports.gi.Pango;
|
||||
|
|
@ -8,7 +8,7 @@ const Pango = imports.gi.Pango;
|
|||
const Environment = imports.ui.environment;
|
||||
Environment.init();
|
||||
|
||||
const MessageTray = imports.ui.messageTray;
|
||||
const Calendar = imports.ui.calendar;
|
||||
|
||||
// Assert that @input, assumed to be markup, gets "fixed" to @output,
|
||||
// which is valid markup. If @output is null, @input is expected to
|
||||
|
|
@ -16,7 +16,7 @@ const MessageTray = imports.ui.messageTray;
|
|||
function assertConverts(input, output) {
|
||||
if (!output)
|
||||
output = input;
|
||||
let fixed = MessageTray._fixMarkup(input, true);
|
||||
let fixed = Calendar._fixMarkup(input, true);
|
||||
JsUnit.assertEquals(output, fixed);
|
||||
|
||||
let parsed = false;
|
||||
|
|
@ -30,7 +30,7 @@ function assertConverts(input, output) {
|
|||
// Assert that @input, assumed to be plain text, gets escaped to @output,
|
||||
// which is valid markup.
|
||||
function assertEscapes(input, output) {
|
||||
let fixed = MessageTray._fixMarkup(input, false);
|
||||
let fixed = Calendar._fixMarkup(input, false);
|
||||
JsUnit.assertEquals(output, fixed);
|
||||
|
||||
let parsed = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue