From 5687aa479fe2f48ecea0d97d990464d3b98ee09c Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=AC=B8=EC=8A=B9=EC=B0=AC?= Date: Wed, 8 Jun 2016 10:22:47 +0900 Subject: [PATCH] Fix tooltip core test case Change tooltip font color options this options changed in tooltip core bodyColor -> bodyFontColor titleColor -> titleFontColor footerColor -> footerFontColor --- test/core.tooltip.tests.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) mode change 100644 => 100755 test/core.tooltip.tests.js diff --git a/test/core.tooltip.tests.js b/test/core.tooltip.tests.js old mode 100644 new mode 100755 index bf48b6f48..39039fd65 --- a/test/core.tooltip.tests.js +++ b/test/core.tooltip.tests.js @@ -33,7 +33,7 @@ describe('tooltip tests', function() { } }); - // Trigger an event over top of the + // Trigger an event over top of the var meta = chartInstance.getDatasetMeta(0); var point = meta.data[1]; @@ -63,7 +63,7 @@ describe('tooltip tests', function() { yAlign: 'center', // Body - bodyColor: '#fff', + bodyFontColor: '#fff', _bodyFontFamily: globalDefaults.defaultFontFamily, _bodyFontStyle: globalDefaults.defaultFontStyle, _bodyAlign: 'left', @@ -80,7 +80,7 @@ describe('tooltip tests', function() { titleMarginBottom: 6, // Footer - footerColor: '#fff', + footerFontColor: '#fff', _footerFontFamily: globalDefaults.defaultFontFamily, _footerFontStyle: 'bold', footerFontSize: globalDefaults.defaultFontSize, @@ -147,7 +147,7 @@ describe('tooltip tests', function() { } }); - // Trigger an event over top of the + // Trigger an event over top of the var meta = chartInstance.getDatasetMeta(0); var point = meta.data[1]; @@ -177,7 +177,7 @@ describe('tooltip tests', function() { yAlign: 'center', // Body - bodyColor: '#fff', + bodyFontColor: '#fff', _bodyFontFamily: globalDefaults.defaultFontFamily, _bodyFontStyle: globalDefaults.defaultFontStyle, _bodyAlign: 'left', @@ -194,7 +194,7 @@ describe('tooltip tests', function() { titleMarginBottom: 6, // Footer - footerColor: '#fff', + footerFontColor: '#fff', _footerFontFamily: globalDefaults.defaultFontFamily, _footerFontStyle: 'bold', footerFontSize: globalDefaults.defaultFontSize, @@ -286,7 +286,7 @@ describe('tooltip tests', function() { } }); - // Trigger an event over top of the + // Trigger an event over top of the var meta = chartInstance.getDatasetMeta(0); var point = meta.data[1]; @@ -316,7 +316,7 @@ describe('tooltip tests', function() { yAlign: 'top', // Body - bodyColor: '#fff', + bodyFontColor: '#fff', _bodyFontFamily: globalDefaults.defaultFontFamily, _bodyFontStyle: globalDefaults.defaultFontStyle, _bodyAlign: 'left', @@ -324,7 +324,7 @@ describe('tooltip tests', function() { bodySpacing: 2, // Title - titleColor: '#fff', + titleFontColor: '#fff', _titleFontFamily: globalDefaults.defaultFontFamily, _titleFontStyle: 'bold', titleFontSize: globalDefaults.defaultFontSize, @@ -333,7 +333,7 @@ describe('tooltip tests', function() { titleMarginBottom: 6, // Footer - footerColor: '#fff', + footerFontColor: '#fff', _footerFontFamily: globalDefaults.defaultFontFamily, _footerFontStyle: 'bold', footerFontSize: globalDefaults.defaultFontSize, @@ -403,7 +403,7 @@ describe('tooltip tests', function() { } }); - // Trigger an event over top of the + // Trigger an event over top of the var meta0 = chartInstance.getDatasetMeta(0); var point0 = meta0.data[1]; @@ -426,7 +426,7 @@ describe('tooltip tests', function() { // Check and see if tooltip was displayed var tooltip = chartInstance.tooltip; - + expect(tooltip._view).toEqual(jasmine.objectContaining({ // Positioning xAlign: 'left', -- 2.47.3