summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
* tests: Remove useless test-hello.cPhilip Chimento2018-06-07
| | | | | | | | This was sample code from the very beginning of this repository, I'm not sure why it has persisted this long. In any case it uses the deprecated g_test_trap_fork() so we may as well delete it. https://phabricator.endlessm.com/T22827
* tests: Move g_test_trap_fork() to _subprocess()Philip Chimento2018-06-07
| | | | | | | | | g_test_trap_fork() is deprecated, and in some recent release it stopped working with gtester --tap. We could track this down but an easy fix is to switch to its replacement, g_test_trap_subprocess(). This fixes the unit tests. https://phabricator.endlessm.com/T22827
* SearchBox: RemovePhilip Chimento2018-04-17
| | | | | | | | | This was used nowhere except in eos-knowledge-lib. We are going to make many eos-knowledge-lib specific changes to it, so it's going to be forked into there. After nothing uses it, it doesn't make sense to keep it here given that we intend to slowly move away from using eos-sdk. https://phabricator.endlessm.com/T20353
* Add test for profiling APIEmmanuele Bassi2018-01-10
|
* build: Fix make distcheckPhilip Chimento2017-08-30
| | | | | | run-with-dbus was removed, but still referred to in dist-files. https://phabricator.endlessm.com/T18981
* test: Don't connect to accessibilityPhilip Chimento2017-08-29
| | | | | | | Run tests with NO_AT_BRIDGE=1 so that they don't fail when there is no accessibility service. https://phabricator.endlessm.com/T18981
* test: Replace run-with-dbus with dbus-run-sessionPhilip Chimento2017-08-29
| | | | | | | 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
* build: Remove WebhelperPhilip Chimento2017-04-12
| | | | | | | Webhelper is now in its own repository: https://github.com/endlessm/webhelper https://phabricator.endlessm.com/T16203
* Disable Metrics support when running testsEmmanuele Bassi2017-03-06
| | | | | | | | | | | | | 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
* Add configure option to disable webhelperEmmanuele Bassi2017-03-02
| | | | | | | | | | 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
* Run tests with mock metrics event recorderPhilip Chimento2016-07-06
| | | | | | | | | 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
* Include $(buildir)/endless directory in per-executable/library _CPPFLAGSJuan Pablo Ugarte2016-07-01
| | | | | | since global AM_CPPFLAGS is ignored in those cases. https://phabricator.endlessm.com/T12150
* Make sure target directory exists before compiling credits.gresourceJuan Pablo Ugarte2016-06-28
| | | | https://phabricator.endlessm.com/T12150
* Remove parallel version of WebHelper compatible with WebKit2-3.0Mario Sanchez Prada2016-04-21
| | | | | | | | | | | | | | | 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
* flexygrid: ignore deprecationsMatt Watson2016-04-13
| | | | | | The whole file is deprecated, we shouldn't make noise at using deprecated glib functions. https://phabricator.endlessm.com/T11000
* Add TopbarHomeButtonMartin Abente Lahaye2016-02-08
| | | | | | | | | 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 portable 64-bit printf specifierPhilip Chimento2015-12-04
| | | | | | | Use G_GINT64_FORMAT which GLib ensures is portable, instead of PRIi64 which Clang apparently doesn't like. [endlessm/eos-sdk#3782]
* Fix faulty floating point math in testPhilip Chimento2015-09-21
| | | | | | | | 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]
* Revert "Add some ordering to tests"Philip Chimento2015-09-02
| | | | | | | | | | 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]
* Add some ordering to testsPhilip Chimento2015-09-01
| | | | | | | 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]
* Add missing \Philip Chimento2015-09-01
| | | | | | | | | | | | | 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]
* Create a parallel version of WebHelper2 for WebKit2-3.0Philip Chimento2015-08-07
| | | | | | | | 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]
* search_box: add function to set text programmaticallyMatt Watson2015-08-06
| | | | | | This way we can set the search box text without triggering the signals for settings autocomplete entries [endlessm/eos-sdk#3442]
* eos-coverage: Add run_coverage.coverage "test"Sam Spilsbury2015-07-21
| | | | | | | | | | | | | | | 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]
* Webhelper local:// URI schemePhilip Chimento2015-06-26
| | | | | | | | 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]
* Add more error checking to testTranslate2Philip Chimento2015-06-26
| | | | | | | 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]
* Run webhelper/testTranslate2 firstPhilip Chimento2015-06-26
| | | | | | | | | 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]
* Handle HTML with embedded tagsPhilip Chimento2015-06-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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]
* Handle quotes in HTML stringsPhilip Chimento2015-06-18
| | | | | | | When generating the .dummy.c file, eos-html-extractor previously did not escape quotes correctly. [endlessm/eos-sdk#3291]
* Handle excess whitespace in stringsPhilip Chimento2015-06-18
| | | | | | | | | | | | 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]
* Add eos-html-extractor and m4 filePhilip Chimento2015-06-04
| | | | | | | | | | | | 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]
* Clean stderr.logPhilip Chimento2015-05-22
| | | | | | | The run-with-dbus script can produce stderr.log, so we should clean it out during 'make clean'. [endlessm/eos-sdk#291]
* Run tests with run-with-dbusCosimo Cecchi2015-05-22
| | | | | | | | 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]
* Expose ngettext() to client-side JSPhilip Chimento2015-05-21
| | | | | | | | | 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]
* Expose gettext() to client-side JSPhilip Chimento2015-05-21
| | | | | | | | | | | | | | 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]
* Implement web actions in WebHelper2Philip Chimento2015-05-21
| | | | | | | | | | | This allows communicating with the host program through URIs of the form webhelper://action?param=value&param2=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]
* WebHelper2 for translating WebKit2 viewsPhilip Chimento2015-05-21
| | | | | | | | | | | 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]
* Merge pull request #3185 from endlessm/sdk/3172Cosimo Cecchi2015-05-20
|\ | | | | Generate XML reports when running on Jenkins
| * Generate XML reports when running on JenkinsPhilip Chimento2015-05-20
| | | | | | | | | | | | | | | | 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]
* | Add a missing Gtk.init()Cosimo Cecchi2015-05-20
|/ | | | Or the test will fail when trying to open the GTK display.
* No need to time out testsPhilip Chimento2015-05-18
| | | | | | | Jasmine has its own timeout timer on each spec, so we don't need to set one up ourselves. [endlessm/eos-sdk#3171]
* Don't define dist_noinst_DATA in included MakefilePhilip Chimento2015-04-17
| | | | | | | 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]
* Lose one level of Makefile includeryPhilip Chimento2015-04-17
| | | | | | | Having these tiny included Makefiles is confusing and vulnerable to mistakenly overwriting variables. [endlessm/eos-sdk#3054]
* Switch to subdir-objectsPhilip Chimento2015-04-17
| | | | | | | | 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]
* Remove defunct flexy-grid demoPhilip Chimento2015-04-17
| | | | | | EosFlexyGrid is deprecated, so we don't want a demo of it in our tests. [endlessm/eos-sdk#3054]
* Integrate Jasmine with AutomakePhilip Chimento2015-04-17
| | | | | | | This runs the tests during "make check" using jasmine-gjs, and outputs results in the TAP format that Automake understands. [endlessm/eos-sdk#3054]
* Port eos-application-manifest tests to JasminePhilip Chimento2015-04-17
| | | | | | This somehow escaped Sam's big switcheroo last year. [endlessm/eos-sdk#3054]
* Remove ancient test runnerPhilip Chimento2015-04-17
| | | | | | | This test runner dates from even before eos-jasmine, and is not used anywhere. [endlessm/eos-sdk#3054]
* Remove eos-jasmine submodulePhilip Chimento2015-04-17
| | | | [endlessm/eos-sdk#3054]
* Remove GPL codePhilip Chimento2015-03-27
| | | | | | | | 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]