Community
Participate
Working Groups
Firefox 3.0.19 on Ubuntu: + org.eclipse.rwt.test.tests.GCTest testCreateAndDisposeGC - OK testCreateGCBeforeControl - OK testCanvasWithChildren - OK testSetAndResetFields - OK testSaveAndRestoreFields failed: Assert "14", type "assertEquals" failed : Expected "italic bold 16px Arial" but found "10px Arial" 13 asserts succeeded. Tests aborted!
In Firefox, the <canvas> context "font" attribute requires Gecko 1.9.1 ( Firefox 3.5+ ). As we don't use canvas for drawing the text (for the same reason - Firefox 3.5+ is needed ) we can introduce "font" property in GC.js instead of canvas context.
Looking more deeply into the issue I found that the problem is not in the "font" attribute itself, but in context save() and restore() function. As canvas context "font" attribute is not supported in FF < 3.5, save/restore do not respect it. We don't use save/restore of "font" attribute in our code, thus - no broken functionality. Need to fix only the test somehow.
Fixed in CVS HEAD.