Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Snowflake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Anti-censorship
Pluggable Transports
Snowflake
Commits
a164d61f
Commit
a164d61f
authored
5 years ago
by
Arlo Breault
Committed by
Cecylia Bocovich
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove tests referring to BadgeUI
Since that's been overhauled. The whole ui.spec.js file probably needs redoing.
parent
0f33546f
No related branches found
Branches containing commit
Tags
webext-0.0.6
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
proxy/spec/ui.spec.js
+1
-25
1 addition, 25 deletions
proxy/spec/ui.spec.js
with
1 addition
and
25 deletions
proxy/spec/ui.spec.js
+
1
−
25
View file @
a164d61f
/* global expect, it, describe, spyOn, DebugUI
, BadgeUI
*/
/* global expect, it, describe, spyOn, DebugUI */
/* eslint no-redeclare: 0 */
/*
...
...
@@ -30,20 +30,6 @@ describe('UI', function() {
expect
(
u
.
$msglog
).
not
.
toBeNull
();
});
it
(
'
is not debug mode when badge exists
'
,
function
()
{
var
u
;
spyOn
(
document
,
'
getElementById
'
).
and
.
callFake
(
function
(
id
)
{
if
(
'
badge
'
===
id
)
{
return
{};
}
return
null
;
});
u
=
new
BadgeUI
();
expect
(
document
.
getElementById
).
toHaveBeenCalled
();
expect
(
document
.
getElementById
.
calls
.
count
()).
toEqual
(
1
);
expect
(
u
.
$badge
).
not
.
toBeNull
();
});
it
(
'
sets status message when in debug mode
'
,
function
()
{
var
u
;
u
=
new
DebugUI
();
...
...
@@ -66,16 +52,6 @@ describe('UI', function() {
expect
(
u
.
$msglog
.
className
).
toEqual
(
''
);
});
it
(
'
sets badge css correctly for non-debug mode
'
,
function
()
{
var
u
;
u
=
new
BadgeUI
();
u
.
$badge
=
{};
u
.
setActive
(
true
);
expect
(
u
.
$badge
.
className
).
toEqual
(
'
active
'
);
u
.
setActive
(
false
);
expect
(
u
.
$badge
.
className
).
toEqual
(
''
);
});
it
(
'
logs to the textarea correctly when debug mode
'
,
function
()
{
var
u
;
u
=
new
DebugUI
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment