about summary refs log tree commit diff
path: root/src/test/rustdoc-js
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2018-01-22 22:49:44 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2018-01-22 22:49:44 +0100
commit7cc3cb29bdbf1c22e2bb5be6ae3798029de3d4d8 (patch)
tree7eaae99067afe84031aeecea97d0a9275e65bc26 /src/test/rustdoc-js
parentfdc18b3067b5bad257ccbe7400e3c4fb617e9e18 (diff)
downloadrust-7cc3cb29bdbf1c22e2bb5be6ae3798029de3d4d8.tar.gz
rust-7cc3cb29bdbf1c22e2bb5be6ae3798029de3d4d8.zip
Fix quoted search
Diffstat (limited to 'src/test/rustdoc-js')
-rw-r--r--src/test/rustdoc-js/quoted.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/test/rustdoc-js/quoted.js b/src/test/rustdoc-js/quoted.js
new file mode 100644
index 00000000000..dcb85b5de04
--- /dev/null
+++ b/src/test/rustdoc-js/quoted.js
@@ -0,0 +1,23 @@
+// 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.
+
+const QUERY = '"error"';
+
+const EXPECTED = {
+    'others': [
+        { 'path': 'std', 'name': 'error' },
+        { 'path': 'std::fmt', 'name': 'Error' },
+        { 'path': 'std::io', 'name': 'Error' },
+    ],
+    'in_args': [],
+    'returned': [
+        { 'path': 'std::fmt::LowerExp', 'name': 'fmt' },
+    ],
+};