diff options
| author | Simen Heggestøyl | 2018-01-28 13:03:05 +0100 |
|---|---|---|
| committer | Simen Heggestøyl | 2018-01-28 13:28:28 +0100 |
| commit | 97defdfc36d9a83a3081c5f76e249f908645f7ec (patch) | |
| tree | 8153be0281d8e52f9e3d32309347080242f65da4 /test | |
| parent | 9824885fabea53f8c4461d038f4c1edad1b8f591 (diff) | |
| download | emacs-97defdfc36d9a83a3081c5f76e249f908645f7ec.tar.gz emacs-97defdfc36d9a83a3081c5f76e249f908645f7ec.zip | |
Fix off-by-one error in 'css--hex-to-rgb'
* lisp/textmodes/css-mode.el (css--hex-to-rgb): Fix off-by-one error.
* test/lisp/textmodes/css-mode-tests.el (css-test-hex-to-rgb): Add
regression tests for the above fix.
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/textmodes/css-mode-tests.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lisp/textmodes/css-mode-tests.el b/test/lisp/textmodes/css-mode-tests.el index 272d281217e..4883123843d 100644 --- a/test/lisp/textmodes/css-mode-tests.el +++ b/test/lisp/textmodes/css-mode-tests.el | |||
| @@ -281,7 +281,9 @@ | |||
| 281 | ("#fff" "rgb(255, 255, 255)") | 281 | ("#fff" "rgb(255, 255, 255)") |
| 282 | ("#ffffff" "rgb(255, 255, 255)") | 282 | ("#ffffff" "rgb(255, 255, 255)") |
| 283 | ("#ffffff80" "rgba(255, 255, 255, 0.5)") | 283 | ("#ffffff80" "rgba(255, 255, 255, 0.5)") |
| 284 | ("#fff8" "rgba(255, 255, 255, 0.5)"))) | 284 | ("#fff0" "rgba(255, 255, 255, 0)") |
| 285 | ("#fff8" "rgba(255, 255, 255, 0.53)") | ||
| 286 | ("#ffff" "rgba(255, 255, 255, 1)"))) | ||
| 285 | (with-temp-buffer | 287 | (with-temp-buffer |
| 286 | (css-mode) | 288 | (css-mode) |
| 287 | (insert (nth 0 item)) | 289 | (insert (nth 0 item)) |