| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
| |
run-with-dbus was removed, but still referred to in dist-files.
https://phabricator.endlessm.com/T18981
|
|
|
|
|
|
|
| |
Run tests with NO_AT_BRIDGE=1 so that they don't fail when there is no
accessibility service.
https://phabricator.endlessm.com/T18981
|
|
|
|
|
|
|
| |
We can rely on this utility shipped with DBus itself, instead of a custom
script that wasn't working inside a flatpak sandbox.
https://phabricator.endlessm.com/T18981
|
|
|
|
|
|
|
| |
Webhelper is now in its own repository:
https://github.com/endlessm/webhelper
https://phabricator.endlessm.com/T16203
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We currently use a private DBus session using dbusmock to intercept all
calls to the EOS Metrics DBus API, and avoid sending bogus metrics when
distchecking or running the test suite.
The Metrics API now looks for an environment variable and short circuits
if found, which means we don't need these contortions any more.
This also allows us to drop the dbusmock Python module dependency.
https://phabricator.endlessm.com/T15748
|
|
|
|
|
|
|
|
|
|
| |
We don't want to build the WebHelper code in the new Endless SDK, as it
still strings along deprecated WebKitGtk dependencies, and nothing that
uses the SDK also uses it.
Based on commit 40c7e4342439dc3db19d3592b7599ff33e744cac.
https://phabricator.endlessm.com/T15749
|
|
|
|
|
|
|
|
|
| |
Since we're about to add a metrics event on unmaximize of the window, we
need to make sure it's not actually sent. In the absence of
https://phabricator.endlessm.com/T8253, the best way to do this is to set
up a mock metrics event recorder using dbusmock.
https://phabricator.endlessm.com/T12233
|
|
|
|
|
|
| |
since global AM_CPPFLAGS is ignored in those cases.
https://phabricator.endlessm.com/T12150
|
|
|
|
| |
https://phabricator.endlessm.com/T12150
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We are no longer shipping the Webkit2-3.0 API on Endless and Virtual School
has already been migrated to the newer WebKit2-4.0 API after having fixed
all the regressions there and so it makes no sense to keep this any longer.
Besides, after the WebKitGTK+ upgrade from 2.4.9 to 2.4.11 debian does no
longer ship the WebKit2GTK+-3.0 packages (and there's no point on us bringing
them back) so, actually, we can not keep this anyway, so let's remove it.
This commit basically reverts 8c837e660853abd03c97a98815f73146eb57c010, but
considering all the changes integrated ever since (not a "clean" revert).
https://phabricator.endlessm.com/T11388
|
|
|
|
|
|
| |
The whole file is deprecated, we shouldn't make noise at using
deprecated glib functions.
https://phabricator.endlessm.com/T11000
|
|
|
|
|
|
|
|
|
| |
As agreed with the design team, all apps should include a generic
home button at the top left corner of the app window. Therefore, we
add a new generic button in the sdk to be used in all the different
apps for consistency.
[endlessm/eos-sdk#4030]
|
|
|
|
|
|
|
| |
Use G_GINT64_FORMAT which GLib ensures is portable, instead of PRIi64
which Clang apparently doesn't like.
[endlessm/eos-sdk#3782]
|
|
|
|
|
|
|
|
| |
Not sure why this never failed before, but in some tests we were
asserting that a floating point number was equal to an integer. Instead
assert that they are equal within 0 decimal places.
[endlessm/eos-sdk#3634]
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit fd1247c9a62fb545f07ed4ad44b57e5519e4036f.
This wasn't actually necessary to fix the problem, so it probably wasn't
a problem in the first place. Revert it in order not to add extra
fussiness.
[endlessm/eos-sdk#3566]
|
|
|
|
|
|
|
| |
There are tests that test the same DBus name, so we don't want them to
run at the same time.
[endlessm/eos-sdk#3566]
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This was a dangerous one. I wanted to add a dependency-only rule (e.g.
"foo: bar") but the lack of a line continuation caused the $(NULL) to get
appended to that rule so that became
foo: bar
$(NULL)
...causing the foo target not to be made at all.
[endlessm/eos-sdk#3566]
|
|
|
|
|
|
|
|
| |
We cannot switch eos-virtual-school to WebKit2-4.0 because of regressions,
but we already committed to using WebHelper2 to localize it. This adds a
version of WebHelper2 that is compatible with WebKit2-3.0.
[endlessm/eos-sdk#3430]
|
|
|
|
|
|
| |
This way we can set the search box text without triggering the
signals for settings autocomplete entries
[endlessm/eos-sdk#3442]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This test automatically generates a coverage report at the
completion of all other tests. It exists as a pseudo-test which
depends on the completion of every other test. Effectively,
coverage reports are now generated automatically when
--enable-coverage is specified, though you can also run
make coverage-cobertura and make coverage-genhtml to update
them otherwise.
The burden on packages is that they must add .coverage to
TEST_EXTENSIONS and add run_coverage.coverage to TESTS.
[endlessm/eos-sdk#3303]
|
|
|
|
|
|
|
|
| |
This adds a local:// URI scheme available to applications using WebHelper
which behaves just like the file:// URI scheme only with fewer security
restrictions.
[endlessm/eos-shell#2309]
|
|
|
|
|
|
|
| |
While debugging the issue in the previous test, this was useful in order
to make tests actually abort if they failed, instead of waiting for the
async callback to be called.
[endlessm/eos-shell#2309]
|
|
|
|
|
|
|
|
|
| |
We can only load web extensions once per process. This test is the only
test that actually uses the web extension (the others load it but don't
use it) so we must make sure it runs before any other tests in the same
process.
[endlessm/eos-shell#2309]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When an element, such as <p>, has a name="translatable" attribute, we
also want to grab markup tags inside the element and translate them as
well.
For example, previously this HTML:
<p name="translatable">An embedded <b>tag</b> in a paragraph</p>
would result in the following string being extracted:
_("An embedded");
However, we want it to be:
_("An embedded <b>tag</b> in a paragraph");
This removes the use of BeautifulSoup from the eos-html-extractor script.
Unfortunately BeautifulSoup could have done this quite easily, but it
does not provide any line number information, which we need. Previously
in order to get the line numbers we also used html.parser from Python's
standard library, to augment the data we got from BeautifulSoup. However,
this issue required html.parser to do all the work that BeautifulSoup did
anyway, so there is no reason to use BeautifulSoup anymore.
[endlessm/eos-sdk#3291]
|
|
|
|
|
|
|
| |
When generating the .dummy.c file, eos-html-extractor previously did not
escape quotes correctly.
[endlessm/eos-sdk#3291]
|
|
|
|
|
|
|
|
|
|
|
|
| |
Whitespace between words and tags doesn't matter to HTML. Indeed, the
text in a translatable element may be formatted any way over any number
of lines, so we normalize all consecutive whitespace to be just one space
character and strip whitespace from the beginning and end of the strings.
This is so that translators are not confronted with strange newlines and
whitespace on Transifex.
[endlessm/eos-sdk#3291]
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is taken almost directly from the existing version in eos-english.
Cleanups to follow in subsequent commits. Previously the m4 code was in
two separate macros, but since they were much the same, I combined them
into one macro.
This also adds a very minimal test for eos-html-extractor; basically as
a very quick regression test for the cleanups to follow.
[endlessm/eos-sdk#3245]
|
|
|
|
|
|
|
| |
The run-with-dbus script can produce stderr.log, so we should clean it
out during 'make clean'.
[endlessm/eos-sdk#291]
|
|
|
|
|
|
|
|
| |
Our JS tests require a session bus, but on Jenkins builder we won't have
it. Run them with a test session bus.
The run-with-dbus script is borrowed from GJS and simplified a bit.
[endlessm/eos-sdk#291]
|
|
|
|
|
|
|
|
|
| |
This exposes the function set by webhelper.set_ngettext() to the client-
side Javascript as a ngettext() function, defined on the global window
object. This allows apps to translate messages that need to be separated
into singular and plural, just like the C ngettext() function.
[endlessm/eos-sdk#291]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This exposes the function set by webhelper.set_gettext() to the client-
side Javascript as a gettext() function, defined on the global window
object. This allows apps to translate messages that are generated
at runtime, not just messages in static HTML.
Some often-used JavaScriptCore operations can be turned into separate
functions, which we can put in a separate source file. This is in
anticipation of the next commit where we will define another function
property of the global object.
[endlessm/eos-sdk#291]
|
|
|
|
|
|
|
|
|
|
|
| |
This allows communicating with the host program through URIs of the
form webhelper://action?param=value¶m2=value2. Actions can be
defined on the WebHelper object and given a callback in Javascript.
Unfortunately we have to use a private C library to register the URI
scheme, because of https://bugs.webkit.org/show_bug.cgi?id=116672
[endlessm/eos-sdk#291]
|
|
|
|
|
|
|
|
|
|
|
| |
This adds a new Javascript module, WebHelper2. It's the WebKit2 analogue
to WebHelper. It offers a facility for calling gettext() on the contents
of DOM elements in your web page.
It accomplishes this using an extension module that's loaded into
WebKit's web process.
[endlessm/eos-sdk#291]
|
|\
| |
| | |
Generate XML reports when running on Jenkins
|
| |
| |
| |
| |
| |
| |
| |
| | |
If we detect a Jenkins environment using the environment variable
JASMINE_JUNIT_REPORTS_DIR that we set in the job's configuration, then
generate XML test reports for each Jasmine unit test.
[endlessm/eos-sdk#3172]
|
|/
|
|
| |
Or the test will fail when trying to open the GTK display.
|
|
|
|
|
|
|
| |
Jasmine has its own timeout timer on each spec, so we don't need to set
one up ourselves.
[endlessm/eos-sdk#3171]
|
|
|
|
|
|
|
| |
This is vulnerable to being overwritten. Instead, define it in the top
level Makefile and append to it in the included Makefile.
[endlessm/eos-sdk#3054]
|
|
|
|
|
|
|
| |
Having these tiny included Makefiles is confusing and vulnerable to
mistakenly overwriting variables.
[endlessm/eos-sdk#3054]
|
|
|
|
|
|
|
|
| |
This requires removing the $(ENDLESS_TESTS_DIRECTORY) variable, which
wasn't really necessary anyway. Subdir-objects would like you to specify
your directories directly in the rule target names.
[endlessm/eos-sdk#3054]
|
|
|
|
|
|
| |
EosFlexyGrid is deprecated, so we don't want a demo of it in our tests.
[endlessm/eos-sdk#3054]
|
|
|
|
|
|
|
| |
This runs the tests during "make check" using jasmine-gjs, and outputs
results in the TAP format that Automake understands.
[endlessm/eos-sdk#3054]
|
|
|
|
|
|
| |
This somehow escaped Sam's big switcheroo last year.
[endlessm/eos-sdk#3054]
|
|
|
|
|
|
|
| |
This test runner dates from even before eos-jasmine, and is not used
anywhere.
[endlessm/eos-sdk#3054]
|
|
|
|
| |
[endlessm/eos-sdk#3054]
|
|
|
|
|
|
|
|
| |
This removes the code that was copied from the LGPL eos-theme repository
and replaces it with a different simple spinner animation, adapted from
the MIT-licensed http://projects.lukehaas.me/css-loaders/
[endlessm/eos-sdk#2948]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a rough implementation of an "About"-like dialog for image
attribution in SDK applications. You can press the 'secret' hotkey
Shift+Ctrl+A to get a dialog with thumbnails and attribution information
for the images in the app's GResource. Clicking on the thumbnail opens
the image's original URI in the browser, if known. Clicking on the text
opens the image's license text in the browser, if known.
For this, you need to add a JSON file to the app's GResource and pass its
GResource path to the EosApplication:image-attribution-file property. The
format of this JSON file is described in the documentation for
EosApplication.
The dialog uses GtkTreeView because we didn't have GtkListBox when I
started implementing it over a year ago. This places some limitations on
the UI; the links behave weirdly and the mouse pointer doesn't change to
a hand when hovering over the links.
[endlessm/eos-sdk#2934]
|
|
|
|
|
|
|
|
| |
UniqueAppFixture is a more appropriate name for the fixture since it is
not only used to test config directories. Add a macro to make the test
adding code more convenient.
[endlessm/eos-sdk#2934]
|
|\
| |
| | |
Update eos-jasmine submodule
|