summaryrefslogtreecommitdiffstats
path: root/devtools/client/animationinspector/test/unit/test_getCssPropertyName.js
blob: 03fec9eff1e5146167e288d73b05c41d5107c7ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */

"use strict";

var Cu = Components.utils;
const {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
const {getCssPropertyName} = require("devtools/client/animationinspector/components/animation-details");

const TEST_DATA = [{
  jsName: "alllowercase",
  cssName: "alllowercase"
}, {
  jsName: "borderWidth",
  cssName: "border-width"
}, {
  jsName: "borderTopRightRadius",
  cssName: "border-top-right-radius"
}];

function run_test() {
  for (let {jsName, cssName} of TEST_DATA) {
    equal(getCssPropertyName(jsName), cssName);
  }
}