mutter/tests/conform
Emmanuele Bassi 0bd1e47b22 text: Make :use-markup set idempotent
Setting :use-markup and :text is currently not idempotent, and it
depends on the ordering, e.g.:

  g_object_set (actor, "use-markup", TRUE, "text", value, NULL);

does not yield the same results as:

  g_object_set (actor, "text", value, "use-markup", TRUE, NULL);

This is particularly jarring when using ClutterText from ClutterScript,
but in general GObject properties should not rely on the order when used
from g_object_set().

The fix is to store the contents of the ClutterText as a separate string
from the displayed text, and use the contents, instead of the displayed
text, when toggling the :use-markup property.

Let's also add a unit test for good measure, to try and catch
regressions.

https://bugzilla.gnome.org/show_bug.cgi?id=651940
2011-09-07 13:00:35 +01:00
..
ADDING_NEW_TESTS
Makefile.am tests: initial support for cally-text conform tests 2011-07-26 15:30:09 +02:00
run-tests.sh
test-actor-destroy.c
test-actor-invariants.c Remove usage of clutter_group_add() 2011-06-16 17:07:32 +01:00
test-actor-size.c
test-anchors.c
test-animator.c
test-behaviours.c
test-binding-pool.c
test-cally-text.c tests: initial support for cally-text conform tests 2011-07-26 15:30:09 +02:00
test-clutter-cairo-texture.c cairo-texture: Deprecate create()/create_region() 2011-07-26 12:53:22 +01:00
test-clutter-rectangle.c
test-clutter-text.c text: Make :use-markup set idempotent 2011-09-07 13:00:35 +01:00
test-clutter-texture.c
test-clutter-units.c
test-cogl-atlas-migration.c Add a conformance test for atlas migration 2011-02-24 20:45:30 +00:00
test-cogl-backface-culling.c
test-cogl-blend-strings.c test-cogl-blend-strings: Don't disable the TEXTURE_N test 2011-08-04 19:18:36 +01:00
test-cogl-depth-test.c test-cogl-depth-test: Update to new Cogl API 2011-05-16 19:01:14 +01:00
test-cogl-fixed.c
test-cogl-just-vertex-shader.c test-cogl-just-vertex-shader: Update to use the portable cogl_* names 2010-12-13 17:29:15 +00:00
test-cogl-materials.c conform/cogl-materials: Fix a compiler warning 2011-07-25 11:09:20 +01:00
test-cogl-multitexture.c
test-cogl-npot-texture.c
test-cogl-object.c
test-cogl-offscreen.c
test-cogl-path.c
test-cogl-pipeline-user-matrix.c Add a conformance test for cogl_pipeline_set_layer_matrix 2011-02-09 16:14:12 +00:00
test-cogl-pixel-buffer.c test-cogl-pixel-buffer: Use the new name for CoglPixelArray 2011-05-16 16:07:19 +01:00
test-cogl-premult.c
test-cogl-primitive.c cogl: s/Cogl*Vertex/CoglVertex*/ 2011-01-21 16:22:40 +00:00
test-cogl-readpixels.c
test-cogl-sub-texture.c test-cogl-sub-texture: Allow single-bit rendering error 2011-05-14 01:12:44 +01:00
test-cogl-texture-3d.c
test-cogl-texture-get-set-data.c
test-cogl-texture-mipmaps.c
test-cogl-texture-pixmap-x11.c Removes Cogl from the repository 2011-05-06 15:44:08 +01:00
test-cogl-texture-rectangle.c tests: Dynamically resolve GL symbols 2011-07-19 16:06:06 +01:00
test-cogl-vertex-buffer-contiguous.c
test-cogl-vertex-buffer-interleved.c
test-cogl-vertex-buffer-mutability.c
test-cogl-viewport.c
test-cogl-wrap-modes.c
test-color.c
test-conform-common.c tests: Dynamically resolve GL symbols 2011-07-19 16:06:06 +01:00
test-conform-common.h tests: Dynamically resolve GL symbols 2011-07-19 16:06:06 +01:00
test-conform-main.c text: Make :use-markup set idempotent 2011-09-07 13:00:35 +01:00
test-group.c
test-launcher.sh.in
test-model.c model: Make sure to emit ::row-changed 2011-07-28 15:00:18 +01:00
test-offscreen-redirect.c actor: make offscreen_redirect prop take flags + default off 2011-08-30 16:20:16 +01:00
test-paint-opacity.c
test-path.c build: include <cairo.h> not <cairo/cairo.h> 2011-06-10 17:57:18 +01:00
test-pick.c conform/pick: Print debug spew only if verbosity is toggled 2011-07-08 12:12:43 +01:00
test-score.c Deprecate ClutterScore 2011-07-08 12:01:08 +01:00
test-script-parser.c
test-state.c
test-text-cache.c
test-texture-fbo.c texture: Deprecate the new_from_actor() function 2011-07-08 12:08:19 +01:00
test-timeline-interpolate.c
test-timeline-rewind.c ClutterTimeline: Fix the 'msecs' parameter for the new-frame signal 2011-01-24 11:52:47 +00:00
test-timeline.c test-timeline: Ignore the default stage 2011-02-19 16:47:20 +00:00