Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
520aad81
Commit
520aad81
authored
Aug 10, 2018
by
Tobias Skarhed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace element
parent
076bfea3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
public/app/plugins/panel/heatmap/specs/renderer.jest.ts
+13
-10
No files found.
public/app/plugins/panel/heatmap/specs/renderer.jest.ts
View file @
520aad81
...
...
@@ -13,6 +13,8 @@ import { convertToHeatMap, convertToCards, histogramToHeatmap, calculateBucketSi
describe
(
'grafanaHeatmap'
,
function
()
{
// beforeEach(angularMocks.module('grafana.core'));
let
scope
=
<
any
>
{};
function
heatmapScenario
(
desc
,
func
,
elementWidth
=
500
)
{
describe
(
desc
,
function
()
{
var
ctx
:
any
=
{};
...
...
@@ -89,7 +91,7 @@ describe('grafanaHeatmap', function() {
},
};
var
scope
=
$rootScope
.
$new
();
//
var scope = $rootScope.$new();
scope
.
ctrl
=
ctrl
;
ctx
.
series
=
[];
...
...
@@ -131,20 +133,21 @@ describe('grafanaHeatmap', function() {
ctx
.
data
.
cards
=
cards
;
ctx
.
data
.
cardStats
=
cardStats
;
let
elemHtml
=
`
<div class="heatmap-wrapper">
<div class="heatmap-canvas-wrapper">
<div class="heatmap-panel" style='width:
${
elementWidth
}
px'></div>
</div>
</div>`
;
//
let elemHtml = `
//
<div class="heatmap-wrapper">
//
<div class="heatmap-canvas-wrapper">
//
<div class="heatmap-panel" style='width:${elementWidth}px'></div>
//
</div>
//
</div>`;
var
element
=
$
.
parseHTML
(
elemHtml
);
//
var element = $.parseHTML(elemHtml);
// $compile(element)(scope);
// scope.$digest();
ctrl
.
data
=
ctx
.
data
;
ctx
.
element
=
element
;
rendering
(
scope
,
$
(
element
),
[],
ctrl
);
// ctx.element = element;
let
elem
=
{};
let
render
=
new
rendering
(
scope
,
elem
,
[],
ctrl
);
ctrl
.
events
.
emit
(
'render'
);
});
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment