db0c2b5959
ShellTheme replaces both NbtkStyle and ccss_stylesheet_t. The interface NbtkStylable 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 NbtkStylable and ccss_node_t. Some operations that were previously on NbtkStylable (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.
45 lines
887 B
Bash
45 lines
887 B
Bash
#!/bin/sh
|
|
|
|
usage() {
|
|
echo >&2 "Usage run-test.sh [-v|--verbose] <test_js>..."
|
|
exit 1
|
|
}
|
|
|
|
tests=
|
|
verbose=false
|
|
for arg in $@ ; do
|
|
case $arg in
|
|
-v|--verbose)
|
|
verbose=true
|
|
;;
|
|
-*)
|
|
usage
|
|
;;
|
|
*)
|
|
tests="$tests $arg"
|
|
;;
|
|
esac
|
|
done
|
|
|
|
builddir=`dirname $0`
|
|
builddir=`cd $builddir && pwd`
|
|
srcdir=$builddir/@srcdir@
|
|
srcdir=`cd $srcdir && pwd`
|
|
|
|
GI_TYPELIB_PATH="@MUTTER_LIB_DIR@/mutter:$builddir/../src"
|
|
GJS_DEBUG_OUTPUT=stderr
|
|
$verbose || GJS_DEBUG_TOPICS="JS ERROR;JS LOG"
|
|
GNOME_SHELL_TESTSDIR="$srcdir/"
|
|
LD_PRELOAD="$builddir/../src/.libs/libgnome-shell.so"
|
|
|
|
export GI_TYPELIB_PATH GJS_DEBUG_OUTPUT GJS_DEBUG_TOPICS GNOME_SHELL_JS GNOME_SHELL_TESTSDIR LD_PRELOAD
|
|
|
|
gjs_args=
|
|
for i in $srcdir $srcdir/../js @GJS_JS_DIR@ @GJS_JS_NATIVE_DIR@ ; do
|
|
gjs_args="$gjs_args -I $i"
|
|
done
|
|
|
|
for test in $tests ; do
|
|
gjs-console $gjs_args $test || exit $?
|
|
done
|