summaryrefslogtreecommitdiff
path: root/xc/test/xsuite/xtest/lib/error/ECol.mc
diff options
context:
space:
mode:
authorrws <empty>1992-06-11 15:26:22 +0000
committerrws <empty>1992-06-11 15:26:22 +0000
commit7119bb6a712c6a90a34bc9b719b6a67f24fab749 (patch)
tree0270049c8da9aa012abad319784f28b716d718c2 /xc/test/xsuite/xtest/lib/error/ECol.mc
parentc3ebc3539110bc7ed3118c49860ca8a5d3ac1a26 (diff)
initial external version
Diffstat (limited to 'xc/test/xsuite/xtest/lib/error/ECol.mc')
-rw-r--r--xc/test/xsuite/xtest/lib/error/ECol.mc33
1 files changed, 33 insertions, 0 deletions
diff --git a/xc/test/xsuite/xtest/lib/error/ECol.mc b/xc/test/xsuite/xtest/lib/error/ECol.mc
new file mode 100644
index 000000000..2788bebb5
--- /dev/null
+++ b/xc/test/xsuite/xtest/lib/error/ECol.mc
@@ -0,0 +1,33 @@
+/*
+ * Copyright 1990, 1991 by the Massachusetts Institute of Technology and
+ * UniSoft Group Limited.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and
+ * its documentation for any purpose is hereby granted without fee,
+ * provided that the above copyright notice appear in all copies and that
+ * both that copyright notice and this permission notice appear in
+ * supporting documentation, and that the names of MIT and UniSoft not be
+ * used in advertising or publicity pertaining to distribution of the
+ * software without specific, written prior permission. MIT and UniSoft
+ * make no representations about the suitability of this software for any
+ * purpose. It is provided "as is" without express or implied warranty.
+ *
+ * $XConsortium$
+ */
+>>ASSERTION Bad A
+>>### Color
+When a colourmap argument does not name a valid colourmap, then a
+.S BadColor
+error occurs.
+>>STRATEGY
+Create a bad colourmap by creating and freeing a colourmap.
+Call test function using bad colourmap as the colourmap argument.
+Verify that a BadColor error occurs.
+>>CODE BadColor
+
+ A_COLORMAP = badcolormap(A_DISPLAY, DRW(A_DISPLAY));
+ XCALL;
+ if(geterr() == BadColor)
+ PASS;
+ else
+ FAIL;