1. 12 Nov, 2010 1 commit
    • Owen W. Taylor's avatar
      Add run-js-test executable to run tests · c98103ff
      Owen W. Taylor authored
      ST makes use of GTK+ for input methods and for icon themes; therefore
      we have need to initialize GTK+ in order to test these parts of Clutter.
      Instead of LD_PRELOADING our module, use a separately compiled executable
      that links to the UI components in GNOME Shell, initializes Clutter and
      GTK+ and hooks them together.
      Getting all the symbols from St and the GUI components exported for
      use via GJS requires a bit of contortion: we need to actually link the
      St convenience library into a shared library and link the executable
      to that since there is no way with libtool to take a convenience library
      and put all its symbols into an executable --whole-archive style.
  2. 01 Oct, 2009 6 commits
    • Owen W. Taylor's avatar
      testcommon.css: Don't theme all buttons · 03a45b66
      Owen W. Taylor authored
      StButton is used for many things - scrollbar steppers, etc. Theming
      all buttons to look like push-buttons breaks that. So in testcommon.css
      just theme a .push-button class to look vaguely button-like.
    • Owen W. Taylor's avatar
      Rename StThemeImage to StBorderImage · 4d55ccff
      Owen W. Taylor authored
      The current CSS3 border-image is close to a superset of what we were
      doing for -hippo-background-image. Woot! rename StThemeImage to
      StBorderImage and change parsing to look for:
       border-image: <url> <number>...
      Rather than
       -st-background-image: <url> <length>...
      percentanges for the border sizes are not currently supported, neither
      are the keywords for handling of the middle part. We always do 'stretch'
      for now.
    • Owen W. Taylor's avatar
      Add support for colored borders · 2a0adc0f
      Owen W. Taylor authored
      Use BigRectangle to draw the border and background if there's
      a border width or border radius and no border image. (Only
      uniform borders are supported for now with some deviations
      from the CSS model noted in the comments.)
      The background color and image parameters are removed from
      StWidget's draw_background() method since they were not used
      for StButton (the only current user) and the encapsulation
      break that they presented caused some minor problems.
      Add a test case for borders, and also use borders to style
      the buttons in the 'inline-style' test case.
    • Owen W. Taylor's avatar
      Port our imported parts of Mx to ShellTheme · a9fd3503
      Owen W. Taylor authored
      ShellTheme replaces both StStyle and ccss_stylesheet_t.
      The interface StStylable is replaced by usage of ShellThemeNode.
      A concrete node class allows some significant optimizations of property
      inheritance that would have been much more difficult to achieve with
      the highly abstract pair of StStylable and ccss_node_t.
      Some operations that were previously on StStylable (like the
      ::style-changed signal) are directly on NtkWidget.
      Custom properties are no longer registered as param-specs; instead you
      call directly into shell theme node to look up a length or color:
      shell_theme_node_get_length (theme_node, "border-spacing", FALSE, &spacing);
      The dependency on libccss is dropped, while preserving all existing
      functionality and adding proper parsing and inheritance of font properties
      and proper inheritance for the 'color' property.
      Some more javascript tests for CSS functionality are added; workarounds for
      a CSS bug where *.some-class was needed instead of .some-class are removed.
    • Owen W. Taylor's avatar
      Fix installation and distribution of stylesheet data · 6b958640
      Owen W. Taylor authored
      Install and distribute gnome-shell.css and theme images. They are moved
      down from $datadir to $datadir/theme to avoid a weirdness where we have
      images in $datadir and then also in $datadir/images.
      (Also moved in the source tree to avoid adding another difference between
      installed and uninstalled operation.)
    • Owen W. Taylor's avatar
      Add some structure for interactive tests of UI components · 55497899
      Owen W. Taylor authored
      js/ui/environment.js: Split out initial UI setup (Tweener initialization,
        ClutterContainer monkey-patching) into a separate file we can import from tests.
      tests/: Directory for various types of tests
      tests/run-test.sh: Shell script that to run tests with an appropriate
        environment set up.
      tests/testcommon/: Common modules and data for tests
      tests/interactive/: Interactive tests
      tests/interactive/box-layout.js: A sample test of StLayout