Commit Graph

50 Commits

Author SHA1 Message Date
Guillaume Gomez 0233abebc8 Update rustdoc-js tester tool to work with new kind of variables 2022-04-24 15:36:34 +02:00
Guillaume Gomez 299e8ee25e Add an extra check over filter type 2022-04-18 21:43:19 +02:00
Guillaume Gomez 6f35475ba5 Parse idents the same way in both quote string elements and "normal" elements 2022-04-18 20:59:09 +02:00
Guillaume Gomez e03a950747 Handle separators in their own functions and fix missing handling of tabs 2022-04-18 20:59:09 +02:00
Guillaume Gomez 8e29ed43d9 Add isIdentCharacter function to ensure that unexpected characters are handled correctly 2022-04-18 20:59:09 +02:00
Guillaume Gomez 49297337b4 Simplify parser syntax 2022-04-18 20:59:08 +02:00
Guillaume Gomez 99d552092c Make query parser more strict and improve display of errors 2022-04-18 20:59:08 +02:00
Guillaume Gomez 264064df36 * Greatly improve the rustdoc search parser source code
* Move all functions outside parseQuery
2022-04-18 20:59:08 +02:00
Guillaume Gomez bbcf1762dd Improve naming of "val" field 2022-04-18 20:59:08 +02:00
Guillaume Gomez 7cefee027a Add possibility to check parsed query 2022-04-18 20:59:08 +02:00
Guillaume Gomez 17fe3068d2 Update tester to have FILTER_CRATE set to null if undefined. 2022-02-03 22:59:33 +01:00
Guillaume Gomez 10d65a9636 Allow to run a specific rustdoc-js* test 2021-11-09 17:41:51 +01:00
Guillaume Gomez 3f496b5f2e Simplify js tester a bit 2021-11-03 21:37:19 +01:00
Guillaume Gomez cc319f88a7 Fix rustdoc-js tool string "parsing"
Improve tool: add support for multiline comments
2021-08-11 20:20:17 +02:00
Guillaume Gomez 18b7c0a00e Update rustdoc-js tools 2021-05-15 13:09:55 +02:00
Jacob Hoffman-Andrews d44c6ed351 Updated tester.js for separate search.js 2021-04-13 16:43:14 -07:00
Michael Howell 227f5ed679 rustdoc: Separate filter-empty-string out into its own function 2021-04-01 12:17:43 -07:00
Guillaume Gomez c013f2a735 Improve diff display in case the whole key in missing 2021-02-01 15:56:51 +01:00
Guillaume Gomez 1d1ab21ad9 Remove inline script tags 2021-01-18 12:03:53 +01:00
Guillaume Gomez fa14f22fcb Improve rustdoc JS tests error output 2020-11-26 21:59:45 +01:00
Oliver Middleton 478750c1db rustdoc: Fix doc aliases with crate filtering
Fix a crash when searching for an alias contained in the currently selected filter crate.

Also remove alias search results for crates that should be filtered out.

The test suite needed to be fixed to actually take into account the crate filtering and check that there are no results when none are expected.
2020-06-23 09:27:37 +01:00
Guillaume Gomez 398511a135 Import missing functions from storage.js 2020-05-26 15:11:44 +02:00
Guillaume Gomez c4d9318be6 Make current crate aliases go first 2020-05-14 11:36:02 +02:00
Guillaume Gomez f581cf7544 Merge aliases and search-index 2020-05-07 20:08:08 +02:00
Guillaume Gomez d80ac14fe6 Extend rustdoc-js tester to allow to test multiple queries in one file 2020-05-07 20:08:08 +02:00
Guillaume Gomez 426055cb29 Improve rustdoc js testers code 2020-04-14 13:40:11 +02:00
Guillaume Gomez d6b75e0ef1 End cleanup on rustdoc-js tools 2020-04-11 16:32:28 +02:00
Guillaume Gomez feb6635fe6 Clean up rustdoc js tester source code and move common code in one place 2020-03-21 13:39:49 +01:00
Guillaume Gomez 9b85213610 Add missing variable to load in non-std tester as well 2020-03-16 21:50:04 +01:00
Oliver Middleton 3f58ab6e24 Allow rustdoc-js and rustdoc-js-std to use none default build dir location 2020-03-13 23:24:12 +00:00
Guillaume Gomez be23cd9a2d Move documentation build into bootstrap 2019-02-25 17:46:06 +01:00
Guillaume Gomez aa3ca321e9 Rename rustdoc js test suites 2019-02-25 17:46:06 +01:00
Guillaume Gomez 834347ddaf Add rustdoc JS non-std tests 2019-02-25 17:43:57 +01:00
Mark Rousskov e132d9066d Account for no newline before test annotations
Previously the license comment would always provide that newline but
since that's been removed this change is needed.
2018-12-26 09:00:55 -07:00
Mark Rousskov 2a663555dd Remove licenses 2018-12-25 21:08:33 -07:00
John Heitmann 5056669fc8 Fix rustdoc-js tests
Fixes rustdoc-js tests by teaching tester.js how to handle single-line js comments.

Also, added speculative support for template strings, and warnings for future debuggers.
2018-12-18 00:12:40 -08:00
Guillaume Gomez 8062c7ae4b Add test for crate filtering 2018-11-28 19:33:33 +01:00
Guillaume Gomez 115df57757 reduce search-index size 2018-06-30 16:28:25 +02:00
Guillaume Gomez 1fcce48451 Add rustdoc-js tester should-fail option 2018-06-16 00:13:28 +02:00
Guillaume Gomez 2f7fa24aee Update rustdoc-js 2018-06-04 21:22:51 +02:00
Guillaume Gomez 934e37aeb4 Rollup merge of #50632 - GuillaumeGomez:minification, r=ollie27
Add minification process

r? @QuietMisdreavus
2018-05-15 14:26:59 +02:00
Guillaume Gomez f2bc09e68b Fix invalid deduplication 2018-05-12 19:16:37 +02:00
Guillaume Gomez e2db0a5630 Update js tester tool 2018-05-12 19:15:07 +02:00
Guillaume Gomez 2c91b49fe4 Add exact-check option to rustdoc-js tests 2018-05-09 19:17:13 +02:00
Guillaume Gomez 00bbda16a7 Add query search order check 2018-04-28 17:21:12 +02:00
Guillaume Gomez 31e7cc4ba4 update tester 2018-04-21 22:02:54 +02:00
Guillaume Gomez 47a9ffa573 Add multi-query search 2018-04-14 17:01:28 +02:00
Guillaume Gomez 3a7e247acb Fix for older JS versions 2018-01-16 15:38:08 +01:00
Guillaume Gomez 43acd233b3 Add tester and a few tests 2018-01-12 22:51:34 +01:00
Guillaume Gomez f18c52b223 Start adding js tests 2018-01-12 22:51:34 +01:00