From: 문승찬 Date: Wed, 8 Jun 2016 01:22:47 +0000 (+0900) Subject: Fix tooltip core test case X-Git-Tag: v2.1.5~9^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5687aa479fe2f48ecea0d97d990464d3b98ee09c;p=thirdparty%2FChart.js.git Fix tooltip core test case Change tooltip font color options this options changed in tooltip core bodyColor -> bodyFontColor titleColor -> titleFontColor footerColor -> footerFontColor --- 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',