tests/examples: Explicitly mark tests generating text
This is similar to the previous commit, but for text output that is produced by some test. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
654eecd40d
commit
e1a90ecf5b
|
@ -229,6 +229,9 @@ function(run_test test_path namespace escaped_content)
|
|||
# If there is an output, assume it is relevant and add it to the
|
||||
# documentation under the image.
|
||||
if(NOT ${TEST_OUTPUT} STREQUAL "")
|
||||
if(NOT tmp_content MATCHES "--DOC_GEN_OUTPUT")
|
||||
message(FATAL_ERROR "Unexpected output from ${test_path}: ${TEST_OUTPUT}")
|
||||
endif()
|
||||
set(TEST_DOC_CONTENT
|
||||
"${TEST_DOC_CONTENT}\n${DOC_LINE_PREFIX}\n${DOC_LINE_PREFIX}**Usage example output**:\n${DOC_LINE_PREFIX}"
|
||||
)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
--DOC_GEN_IMAGE --DOC_HIDE
|
||||
--DOC_GEN_OUTPUT --DOC_GEN_IMAGE --DOC_HIDE
|
||||
screen[1]._resize {x = 175, width = 128, height = 96} --DOC_HIDE
|
||||
mouse.coords {x=175+60,y=60} --DOC_HIDE
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
--DOC_GEN_IMAGE --DOC_HIDE
|
||||
--DOC_GEN_OUTPUT --DOC_GEN_IMAGE --DOC_HIDE
|
||||
local awful = {placement = require("awful.placement")} --DOC_HIDE
|
||||
|
||||
local c = client.gen_fake {x = 20, y = 20, width= 280, height=200, screen =screen[1]} --DOC_HIDE
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
--DOC_GEN_IMAGE --DOC_HIDE
|
||||
--DOC_GEN_OUTPUT --DOC_GEN_IMAGE --DOC_HIDE
|
||||
local awful = {placement = require("awful.placement")} --DOC_HIDE
|
||||
|
||||
local c = client.gen_fake {x = -30, y = -30, width= 100, height=100} --DOC_HIDE
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
--DOC_GEN_OUTPUT --DOC_HIDE
|
||||
local gears = require("gears") --DOC_HIDE
|
||||
|
||||
-- Create a class for this object. It will be used as a backup source for
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
--DOC_GEN_OUTPUT --DOC_HIDE
|
||||
local gears = require("gears") --DOC_HIDE
|
||||
|
||||
local o = gears.object{}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
--DOC_GEN_OUTPUT --DOC_HIDE
|
||||
local gears = {sort={topological = require("gears.sort.topological")}} --DOC_HIDE
|
||||
|
||||
local tsort = gears.sort.topological()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
--DOC_GEN_IMAGE
|
||||
--DOC_GEN_OUTPUT --DOC_GEN_IMAGE
|
||||
local generic_widget, generic_before_after = ... --DOC_HIDE_ALL
|
||||
local wibox = require("wibox") --DOC_HIDE
|
||||
local beautiful = require("beautiful") --DOC_HIDE
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
--DOC_GEN_IMAGE
|
||||
--DOC_GEN_OUTPUT --DOC_GEN_IMAGE
|
||||
local _, generic_before_after = ... --DOC_HIDE_ALL
|
||||
local wibox = require("wibox") --DOC_HIDE
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
--DOC_GEN_IMAGE
|
||||
--DOC_GEN_OUTPUT --DOC_GEN_IMAGE
|
||||
local _, generic_before_after = ... --DOC_HIDE_ALL
|
||||
local wibox = require("wibox") --DOC_HIDE
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
--DOC_GEN_IMAGE
|
||||
--DOC_GEN_OUTPUT --DOC_GEN_IMAGE
|
||||
local generic_widget = ... --DOC_HIDE_ALL
|
||||
local wibox = require("wibox") --DOC_HIDE
|
||||
local beautiful = require("beautiful") --DOC_HIDE
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
--DOC_GEN_IMAGE
|
||||
--DOC_GEN_OUTPUT --DOC_GEN_IMAGE
|
||||
local _, generic_before_after = ... --DOC_HIDE_ALL
|
||||
local wibox = require("wibox") --DOC_HIDE
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
--DOC_GEN_IMAGE
|
||||
--DOC_GEN_OUTPUT --DOC_GEN_IMAGE
|
||||
local _, generic_before_after = ... --DOC_HIDE_ALL
|
||||
local wibox = require("wibox") --DOC_HIDE
|
||||
|
||||
|
|
Loading…
Reference in New Issue