summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-js/foreign-type-path.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-js/foreign-type-path.js')
-rw-r--r--tests/rustdoc-js/foreign-type-path.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/rustdoc-js/foreign-type-path.js b/tests/rustdoc-js/foreign-type-path.js
new file mode 100644
index 000000000..334761bad
--- /dev/null
+++ b/tests/rustdoc-js/foreign-type-path.js
@@ -0,0 +1,9 @@
+const QUERY = 'MyForeignType::my_method';
+
+const EXPECTED = {
+ 'others': [
+ // Test case for https://github.com/rust-lang/rust/pull/96887#pullrequestreview-967154358
+ // Validates that the parent path for a foreign type method is correct.
+ { 'path': 'foreign_type_path::aaaaaaa::MyForeignType', 'name': 'my_method' },
+ ],
+};