diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-08-22 00:21:08 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-08-22 00:21:08 +0200 |
| commit | e87b4b3100556a84042482eeaedc5de8f2d1fe28 (patch) | |
| tree | c6a7e8465979b7d873085ee0fa67011833040414 /src/test/rustdoc-js/substring.js | |
| parent | bf1e461173e3936e4014cc951dfbdd7d9ec9190b (diff) | |
| download | rust-e87b4b3100556a84042482eeaedc5de8f2d1fe28.tar.gz rust-e87b4b3100556a84042482eeaedc5de8f2d1fe28.zip | |
Search a substring instead of start of string in rustdoc search
Diffstat (limited to 'src/test/rustdoc-js/substring.js')
| -rw-r--r-- | src/test/rustdoc-js/substring.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/rustdoc-js/substring.js b/src/test/rustdoc-js/substring.js new file mode 100644 index 00000000000..49c1c05d301 --- /dev/null +++ b/src/test/rustdoc-js/substring.js @@ -0,0 +1,20 @@ +// Copyright 2018 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// exact-check + +const QUERY = 'waker_from'; + +const EXPECTED = { + 'others': [ + { 'path': 'std::task', 'name': 'local_waker_from_nonlocal' }, + { 'path': 'alloc::task', 'name': 'local_waker_from_nonlocal' }, + ], +}; |
