Skip to content

Commit

Permalink
Remove ocaml.ppx.context from cram tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davesnx committed Jul 23, 2024
1 parent 21b4a4b commit 3d0cb70
Show file tree
Hide file tree
Showing 60 changed files with 60 additions and 1,140 deletions.
20 changes: 1 addition & 19 deletions packages/ppx/test/css-support/animations.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,7 @@ If this test fail means that the module is not in sync with the ppx

$ dune build

$ dune describe pp ./input.re
[@ocaml.ppx.context
{
tool_name: "ppx_driver",
include_dirs: [],
load_path: [],
open_modules: [],
for_package: None,
debug: false,
use_threads: false,
use_vmthreads: false,
recursive_types: false,
principal: false,
transparent_modules: false,
unboxed_types: false,
unsafe_string: false,
cookies: [],
}
];
$ dune describe pp ./input.re | sed '1,/^];$/d'
let foo =
CSS.keyframes([|
(0, [|CSS.opacity(0.)|]),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,7 @@ If this test fail means that the module is not in sync with the ppx

$ dune build

$ dune describe pp ./input.re
[@ocaml.ppx.context
{
tool_name: "ppx_driver",
include_dirs: [],
load_path: [],
open_modules: [],
for_package: None,
debug: false,
use_threads: false,
use_vmthreads: false,
recursive_types: false,
principal: false,
transparent_modules: false,
unboxed_types: false,
unsafe_string: false,
cookies: [],
}
];
$ dune describe pp ./input.re | sed '1,/^];$/d'
module Color = {
module Background = {
let boxDark = `hex("000000");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,7 @@ If this test fail means that the module is not in sync with the ppx

$ dune build

$ dune describe pp ./input.re
[@ocaml.ppx.context
{
tool_name: "ppx_driver",
include_dirs: [],
load_path: [],
open_modules: [],
for_package: None,
debug: false,
use_threads: false,
use_vmthreads: false,
recursive_types: false,
principal: false,
transparent_modules: false,
unboxed_types: false,
unsafe_string: false,
cookies: [],
}
];
$ dune describe pp ./input.re | sed '1,/^];$/d'

CSS.boxSizing(`borderBox);
CSS.boxSizing(`contentBox);
Expand Down
20 changes: 1 addition & 19 deletions packages/ppx/test/css-support/box-alignment-module.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,7 @@ If this test fail means that the module is not in sync with the ppx

$ dune build

$ dune describe pp ./input.re
[@ocaml.ppx.context
{
tool_name: "ppx_driver",
include_dirs: [],
load_path: [],
open_modules: [],
for_package: None,
debug: false,
use_threads: false,
use_vmthreads: false,
recursive_types: false,
principal: false,
transparent_modules: false,
unboxed_types: false,
unsafe_string: false,
cookies: [],
}
];
$ dune describe pp ./input.re | sed '1,/^];$/d'

CSS.alignSelf(`auto);
CSS.alignSelf(`normal);
Expand Down
20 changes: 1 addition & 19 deletions packages/ppx/test/css-support/box-sizing-module.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,7 @@ If this test fail means that the module is not in sync with the ppx

$ dune build

$ dune describe pp ./input.re
[@ocaml.ppx.context
{
tool_name: "ppx_driver",
include_dirs: [],
load_path: [],
open_modules: [],
for_package: None,
debug: false,
use_threads: false,
use_vmthreads: false,
recursive_types: false,
principal: false,
transparent_modules: false,
unboxed_types: false,
unsafe_string: false,
cookies: [],
}
];
$ dune describe pp ./input.re | sed '1,/^];$/d'

CSS.width(`maxContent);
CSS.width(`minContent);
Expand Down
20 changes: 1 addition & 19 deletions packages/ppx/test/css-support/calc.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,7 @@ If this test fail means that the module is not in sync with the ppx
> (preprocess (pps styled-ppx)))
> EOF

$ dune describe pp ./input.re
[@ocaml.ppx.context
{
tool_name: "ppx_driver",
include_dirs: [],
load_path: [],
open_modules: [],
for_package: None,
debug: false,
use_threads: false,
use_vmthreads: false,
recursive_types: false,
principal: false,
transparent_modules: false,
unboxed_types: false,
unsafe_string: false,
cookies: [],
}
];
$ dune describe pp ./input.re | sed '1,/^];$/d'
CSS.width(`calc(`add((`percent(50.), `pxFloat(4.)))));
CSS.width(`calc(`sub((`pxFloat(20.), `pxFloat(10.)))));
CSS.width(
Expand Down
20 changes: 1 addition & 19 deletions packages/ppx/test/css-support/cascading-and-inheritance.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,7 @@ If this test fail means that the module is not in sync with the ppx

$ dune build

$ dune describe pp ./input.re
[@ocaml.ppx.context
{
tool_name: "ppx_driver",
include_dirs: [],
load_path: [],
open_modules: [],
for_package: None,
debug: false,
use_threads: false,
use_vmthreads: false,
recursive_types: false,
principal: false,
transparent_modules: false,
unboxed_types: false,
unsafe_string: false,
cookies: [],
}
];
$ dune describe pp ./input.re | sed '1,/^];$/d'

CSS.unsafe({js|color|js}, {js|unset|js});
CSS.unsafe({js|fontWeight|js}, {js|unset|js});
Expand Down
20 changes: 1 addition & 19 deletions packages/ppx/test/css-support/color-adjustments-module.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,7 @@ If this test fail means that the module is not in sync with the ppx

$ dune build

$ dune describe pp ./input.re
[@ocaml.ppx.context
{
tool_name: "ppx_driver",
include_dirs: [],
load_path: [],
open_modules: [],
for_package: None,
debug: false,
use_threads: false,
use_vmthreads: false,
recursive_types: false,
principal: false,
transparent_modules: false,
unboxed_types: false,
unsafe_string: false,
cookies: [],
}
];
$ dune describe pp ./input.re | sed '1,/^];$/d'

CSS.unsafe({js|colorAdjust|js}, {js|economy|js});
CSS.unsafe({js|colorAdjust|js}, {js|exact|js});
Expand Down
20 changes: 1 addition & 19 deletions packages/ppx/test/css-support/color-module.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,7 @@ If this test fail means that the module is not in sync with the ppx

$ dune build

$ dune describe pp ./input.re
[@ocaml.ppx.context
{
tool_name: "ppx_driver",
include_dirs: [],
load_path: [],
open_modules: [],
for_package: None,
debug: false,
use_threads: false,
use_vmthreads: false,
recursive_types: false,
principal: false,
transparent_modules: false,
unboxed_types: false,
unsafe_string: false,
cookies: [],
}
];
$ dune describe pp ./input.re | sed '1,/^];$/d'

CSS.color(`rgba((0, 0, 0, `num(0.5))));
CSS.color(`hex({js|F06|js}));
Expand Down
20 changes: 1 addition & 19 deletions packages/ppx/test/css-support/compositingand-blending.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,7 @@ If this test fail means that the module is not in sync with the ppx

$ dune build

$ dune describe pp ./input.re
[@ocaml.ppx.context
{
tool_name: "ppx_driver",
include_dirs: [],
load_path: [],
open_modules: [],
for_package: None,
debug: false,
use_threads: false,
use_vmthreads: false,
recursive_types: false,
principal: false,
transparent_modules: false,
unboxed_types: false,
unsafe_string: false,
cookies: [],
}
];
$ dune describe pp ./input.re | sed '1,/^];$/d'

CSS.unsafe({js|mixBlendMode|js}, {js|normal|js});
CSS.unsafe({js|mixBlendMode|js}, {js|multiply|js});
Expand Down
20 changes: 1 addition & 19 deletions packages/ppx/test/css-support/containment-module.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,7 @@ If this test fail means that the module is not in sync with the ppx

$ dune build

$ dune describe pp ./input.re
[@ocaml.ppx.context
{
tool_name: "ppx_driver",
include_dirs: [],
load_path: [],
open_modules: [],
for_package: None,
debug: false,
use_threads: false,
use_vmthreads: false,
recursive_types: false,
principal: false,
transparent_modules: false,
unboxed_types: false,
unsafe_string: false,
cookies: [],
}
];
$ dune describe pp ./input.re | sed '1,/^];$/d'

CSS.unsafe({js|contain|js}, {js|none|js});
CSS.unsafe({js|contain|js}, {js|strict|js});
Expand Down
20 changes: 1 addition & 19 deletions packages/ppx/test/css-support/content.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,7 @@ If this test fail means that the module is not in sync with the ppx

$ dune build

$ dune describe pp ./input.re
[@ocaml.ppx.context
{
tool_name: "ppx_driver",
include_dirs: [],
load_path: [],
open_modules: [],
for_package: None,
debug: false,
use_threads: false,
use_vmthreads: false,
recursive_types: false,
principal: false,
transparent_modules: false,
unboxed_types: false,
unsafe_string: false,
cookies: [],
}
];
$ dune describe pp ./input.re | sed '1,/^];$/d'

CSS.unsafe({js|quotes|js}, {js|auto|js});

Expand Down
20 changes: 1 addition & 19 deletions packages/ppx/test/css-support/display-module.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,7 @@ If this test fail means that the module is not in sync with the ppx

$ dune build

$ dune describe pp ./input.re
[@ocaml.ppx.context
{
tool_name: "ppx_driver",
include_dirs: [],
load_path: [],
open_modules: [],
for_package: None,
debug: false,
use_threads: false,
use_vmthreads: false,
recursive_types: false,
principal: false,
transparent_modules: false,
unboxed_types: false,
unsafe_string: false,
cookies: [],
}
];
$ dune describe pp ./input.re | sed '1,/^];$/d'

CSS.display(`runIn);
CSS.display(`flow);
Expand Down
20 changes: 1 addition & 19 deletions packages/ppx/test/css-support/easing-functions.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,7 @@ If this test fail means that the module is not in sync with the ppx

$ dune build

$ dune describe pp ./input.re
[@ocaml.ppx.context
{
tool_name: "ppx_driver",
include_dirs: [],
load_path: [],
open_modules: [],
for_package: None,
debug: false,
use_threads: false,
use_vmthreads: false,
recursive_types: false,
principal: false,
transparent_modules: false,
unboxed_types: false,
unsafe_string: false,
cookies: [],
}
];
$ dune describe pp ./input.re | sed '1,/^];$/d'

CSS.unsafe({js|transitionTimingFunction|js}, {js|steps(2, jump-start)|js});
CSS.unsafe({js|transitionTimingFunction|js}, {js|steps(2, jump-end)|js});
Expand Down
Loading

0 comments on commit 3d0cb70

Please sign in to comment.