From 1ba30c67685ee0d0e7672a1499e853c765fa1ff0 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 22 Aug 2019 23:49:13 -0700 Subject: Add initial tests for ‘oni-css’ --- test/oni-css-test.el | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 test/oni-css-test.el diff --git a/test/oni-css-test.el b/test/oni-css-test.el new file mode 100644 index 0000000..b49ec07 --- /dev/null +++ b/test/oni-css-test.el @@ -0,0 +1,44 @@ +;;; oni-css-test.el --- Tests for oni-css -*- lexical-binding: t; -*- + +;; Copyright (C) 2019 Tom Willemse + +;; Author: Tom Willemse +;; Keywords: local + +;; This program is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see . + +;;; Commentary: + +;; + +;;; Code: + +(ert-deftest oni-css-test-autoloads () + "Test that ‘oni-css’ gets loaded automatically." + (should (not (featurep 'oni-css))) + (require 'css-mode) + (should (featurep 'oni-css)) + (unload-feature 'oni-css t) + (unload-feature 'css-mode t)) + +(ert-deftest oni-css-test-less-autoloads () + "Test that ‘oni-css’ gets loaded automatically with less." + (should (not (featurep 'oni-css))) + (require 'less-css-mode) + (should (featurep 'oni-css)) + (unload-feature 'oni-css t) + (unload-feature 'less-css-mode t)) + +(provide 'oni-css-test) +;;; oni-css-test.el ends here -- cgit v1.2.3-54-g00ecf