fixed up some text shadow issues

This commit is contained in:
Eric Rowell
2012-11-24 09:15:02 -08:00
parent 0e514f7810
commit 0e6eb3ffe4
8 changed files with 16 additions and 19 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -13,6 +13,7 @@
<script src="../dataUrls/customShapeTwoFills.js"></script>
<script src="../dataUrls/cloneGroup.js"></script>
<script src="../dataUrls/nodeShapeTypeSelector.js"></script>
<script src="../dataUrls/multiLineTextWithShadows.js"></script>
<script src="../js/Test.js"></script>

View File

@@ -647,7 +647,7 @@ Test.Modules.CONTAINER = {
test(group.get('Group').length === 0, 'group should have 0 groups');
},
'*node and shape type selector': function(containerId) {
'node and shape type selector': function(containerId) {
var stage = new Kinetic.Stage({
container: containerId,
width: 578,

View File

@@ -771,7 +771,7 @@ Test.Modules.NODE = {
cachedShape.createImageBuffer(function() {
console.log(111)
layer.draw();
//console.log(layer.toDataURL());
warn(dataUrls['regular and cahced polygon'] === layer.toDataURL(), 'regular and cached polygon layer data url is incorrect');

View File

@@ -308,7 +308,7 @@ Test.Modules.Text = {
//width: 200,
padding: 20,
align: 'center',
shadow: {
textShadow: {
color: 'red',
blur: 1,
offset: [10, 10],
@@ -321,10 +321,8 @@ Test.Modules.Text = {
layer.add(text);
stage.add(layer);
//console.log(layer.toDataURL());
warn(layer.toDataURL() === dataUrls['multi line text with shadows'], 'multi line text with shadows data url is incorrect');
warn(layer.toDataURL() === multiLineTextWithShadows, 'multi line text with shadows data url is incorrect');
},
'change font size should update text data': function(containerId) {
var stage = new Kinetic.Stage({