diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2018-08-19 00:27:21 -0400 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2018-11-07 22:43:06 -0500 |
commit | b5b25328b75ad97836f585f708b60d8fc6bca902 (patch) | |
tree | 4554f2f6f6c55cf1e366eec832af2f644a2d32c8 /tests/scanner/Regress-1.0-Gjs-expected | |
parent | 581f74be8e4919ac7dd4bec036eeda7605f425d7 (diff) | |
download | gobject-introspection-b5b25328b75ad97836f585f708b60d8fc6bca902.tar.gz |
regress: Implement interface and override properties
This adds a property to RegressTestInterface which can be overridden, and
makes RegressTestSubObj implement it and override the property. This is
in order to catch the regressions in GJS around property access.
See gjs#193.
Diffstat (limited to 'tests/scanner/Regress-1.0-Gjs-expected')
3 files changed, 25 insertions, 3 deletions
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestInterface.page b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestInterface.page index 5fb58df4..de94a5c0 100644 --- a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestInterface.page +++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestInterface.page @@ -12,7 +12,9 @@ <synopsis><code> const Regress = imports.gi.Regress; -let test_interface = new Regress.TestInterface(); +let test_interface = new Regress.TestInterface({ + <link xref='Regress.TestInterface-number'>number</link>: value, +}); </code></synopsis> @@ -22,7 +24,7 @@ let test_interface = new Regress.TestInterface(); </synopsis> <synopsis> <title>Known Implementations</title> - <p>None</p> + <p>TestInterface is implemented by TestSubObj</p> </synopsis> <links type="topic" ui:expanded="true" api:type="function" api:mime="text/x-gjs" diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestSubObj-boolean.page b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestSubObj-boolean.page new file mode 100644 index 00000000..b2be61b0 --- /dev/null +++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestSubObj-boolean.page @@ -0,0 +1,18 @@ +<?xml version="1.0"?> +<page id="Regress.TestSubObj-boolean" + type="topic" + style="property" + xmlns="http://projectmallard.org/1.0/" + xmlns:api="http://projectmallard.org/experimental/api/" + xmlns:ui="http://projectmallard.org/1.0/ui/"> + <info> + <link xref="Regress.TestSubObj" group="property" type="guide"/> + <title type="link" role="topic">boolean</title> + </info> + <title>Regress.TestSubObj.boolean</title> + <synopsis><code mime="text/x-gjs"> +TestSubObj.boolean: Boolean (Read / Write / Construct) + </code></synopsis> + + +</page> diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestSubObj.page b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestSubObj.page index d9f0885e..b69022bd 100644 --- a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestSubObj.page +++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestSubObj.page @@ -12,7 +12,9 @@ <synopsis><code> const Regress = imports.gi.Regress; -let testSubObj = new Regress.TestSubObj(); +let testSubObj = new Regress.TestSubObj({ + <link xref='Regress.TestSubObj-boolean'>boolean</link>: value, +}); </code></synopsis> |