@@ -22,8 +22,8 @@ describe('GraphCtrl', function() {
22
22
describe ( 'msResolution with second resolution timestamps' , function ( ) {
23
23
beforeEach ( function ( ) {
24
24
var data = [
25
- { target : 'test.cpu1' , datapoints : [ [ 1234567890 , 45 ] , [ 1234567899 , 60 ] ] } ,
26
- { target : 'test.cpu2' , datapoints : [ [ 1236547890 , 55 ] , [ 1234456709 , 90 ] ] }
25
+ { target : 'test.cpu1' , datapoints : [ [ 45 , 1234567890 ] , [ 60 , 1234567899 ] ] } ,
26
+ { target : 'test.cpu2' , datapoints : [ [ 55 , 1236547890 ] , [ 90 , 1234456709 ] ] }
27
27
] ;
28
28
ctx . ctrl . panel . tooltip . msResolution = false ;
29
29
ctx . ctrl . onDataReceived ( data ) ;
@@ -37,8 +37,8 @@ describe('GraphCtrl', function() {
37
37
describe ( 'msResolution with millisecond resolution timestamps' , function ( ) {
38
38
beforeEach ( function ( ) {
39
39
var data = [
40
- { target : 'test.cpu1' , datapoints : [ [ 1234567890000 , 45 ] , [ 1234567899000 , 60 ] ] } ,
41
- { target : 'test.cpu2' , datapoints : [ [ 1236547890001 , 55 ] , [ 1234456709000 , 90 ] ] }
40
+ { target : 'test.cpu1' , datapoints : [ [ 45 , 1234567890000 ] , [ 60 , 1234567899000 ] ] } ,
41
+ { target : 'test.cpu2' , datapoints : [ [ 55 , 1236547890001 ] , [ 90 , 1234456709000 ] ] }
42
42
] ;
43
43
ctx . ctrl . panel . tooltip . msResolution = false ;
44
44
ctx . ctrl . onDataReceived ( data ) ;
@@ -52,8 +52,8 @@ describe('GraphCtrl', function() {
52
52
describe ( 'msResolution with millisecond resolution timestamps but with trailing zeroes' , function ( ) {
53
53
beforeEach ( function ( ) {
54
54
var data = [
55
- { target : 'test.cpu1' , datapoints : [ [ 1234567890000 , 45 ] , [ 1234567899000 , 60 ] ] } ,
56
- { target : 'test.cpu2' , datapoints : [ [ 1236547890000 , 55 ] , [ 1234456709000 , 90 ] ] }
55
+ { target : 'test.cpu1' , datapoints : [ [ 45 , 1234567890000 ] , [ 60 , 1234567899000 ] ] } ,
56
+ { target : 'test.cpu2' , datapoints : [ [ 55 , 1236547890000 ] , [ 90 , 1234456709000 ] ] }
57
57
] ;
58
58
ctx . ctrl . panel . tooltip . msResolution = false ;
59
59
ctx . ctrl . onDataReceived ( data ) ;
@@ -67,9 +67,9 @@ describe('GraphCtrl', function() {
67
67
describe ( 'msResolution with millisecond resolution timestamps in one of the series' , function ( ) {
68
68
beforeEach ( function ( ) {
69
69
var data = [
70
- { target : 'test.cpu1' , datapoints : [ [ 1234567890000 , 45 ] , [ 1234567899000 , 60 ] ] } ,
71
- { target : 'test.cpu2' , datapoints : [ [ 1236547890010 , 55 ] , [ 1234456709000 , 90 ] ] } ,
72
- { target : 'test.cpu3' , datapoints : [ [ 1236547890000 , 65 ] , [ 1234456709000 , 120 ] ] }
70
+ { target : 'test.cpu1' , datapoints : [ [ 45 , 1234567890000 ] , [ 60 , 1234567899000 ] ] } ,
71
+ { target : 'test.cpu2' , datapoints : [ [ 55 , 1236547890010 ] , [ 90 , 1234456709000 ] ] } ,
72
+ { target : 'test.cpu3' , datapoints : [ [ 65 , 1236547890000 ] , [ 120 , 1234456709000 ] ] }
73
73
] ;
74
74
ctx . ctrl . panel . tooltip . msResolution = false ;
75
75
ctx . ctrl . onDataReceived ( data ) ;
0 commit comments