aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/headless.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/headless.rs b/tests/headless.rs
new file mode 100644
index 0000000..b9ae598
--- /dev/null
+++ b/tests/headless.rs
@@ -0,0 +1,13 @@
+#![feature(phase)]
+#![feature(tuple_indexing)]
+
+extern crate glutin;
+
+#[cfg(feature = "headless")]
+#[test]
+fn main() {
+ let window = glutin::HeadlessRendererBuilder::new(1024, 768).build().unwrap();
+
+ unsafe { window.make_current() };
+
+}