import mdx from '@astrojs/mdx'; import { expect } from 'chai'; import { parseHTML } from 'linkedom'; import { loadFixture } from '../../../astro/test/test-utils.js'; const FIXTURE_ROOT = new URL('./fixtures/mdx-script-style-raw/', import.meta.url); describe('MDX script style raw', () => { describe('dev', () => { let fixture; let devServer; before(async () => { fixture = await loadFixture({ root: FIXTURE_ROOT, integrations: [mdx()], }); devServer = await fixture.startDevServer(); }); after(async () => { await devServer.stop(); }); it('works with with raw script and style strings', async () => { const res = await fixture.fetch('/index.html'); expect(res.status).to.equal(200); const html = await res.text(); const { document } = parseHTML(html); const scriptContent = document.getElementById('test-script').innerHTML; expect(scriptContent).to.include( "console.log('raw script')", 'script should not be html-escaped' ); const styleContent = document.getElementById('test-style').innerHTML; expect(styleContent).to.include( 'h1[id="script-style-raw"]', 'style should not be html-escaped' ); }); }); describe('build', () => { it('works with with raw script and style strings', async () => { const fixture = await loadFixture({ root: FIXTURE_ROOT, integrations: [mdx()], }); await fixture.build(); const html = await fixture.readFile('/index.html'); const { document } = parseHTML(html); const scriptContent = document.getElementById('test-script').innerHTML; expect(scriptContent).to.include( "console.log('raw script')", 'script should not be html-escaped' ); const styleContent = document.getElementById('test-style').innerHTML; expect(styleContent).to.include( 'h1[id="script-style-raw"]', 'style should not be html-escaped' ); }); }); }); method='get' action='/ansg191/WarpX/log/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.cpp'>
path: root/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.cpp (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2020-02-20Do not use local Redistribute for electrostatic solver (#731)Gravatar Remi Lehe 1-0/+7
2020-02-19doc install yt on Summit (#729)Gravatar MaxThevenet 2-3/+18
2020-02-19avoid duplicate tests and plot less often (#726)Gravatar MaxThevenet 13-149/+11
2020-02-19[mini-PR] when a cufft error occurs, print a meaningful error message (#728)Gravatar Luca Fedeli 2-6/+55
2020-02-18Galilean PSATD with shift (#704)Gravatar Olga Shapoval 28-60/+572
2020-02-18README: Update Badged to `master` (#725)Gravatar Axel Huebl 3-4/+3
2020-02-15Xi precision (#719)Gravatar MaxThevenet 5-105/+110
2020-02-15Analysis: Fix Warnings (#722)Gravatar Axel Huebl 5-9/+2
2020-02-13moving dcomp++ outside MFIter loop (#711)Gravatar Revathi Jambunathan 1-9/+4
2020-02-12update release tag in the code (#706)Gravatar MaxThevenet 3-3/+3
2020-02-12Docs: Fix Link Format (#710)Gravatar Axel Huebl 1-1/+1
2020-02-11Add do_not_gather. (#705)Gravatar Yinjian Zhao 3-1/+8
2020-02-11openPMD: Add GNUmakefile Default (#708)Gravatar Axel Huebl 1-0/+1
2020-02-11Remove all mentions of the dev branch (#707)Gravatar Remi Lehe 8-32/+23
2020-02-11openPMD-api: One Series at a Time (#701)Gravatar Axel Huebl 1-0/+4
2020-02-11Add automated test for the electrostatic code (#700)Gravatar Remi Lehe 2-0/+43
2020-02-11openPMD: Avoid Writing Last Step TwiceGravatar Junmin Gu 1-1/+4
2020-02-11Remove compilation of Fortran files in EM modeGravatar Remi Lehe 2-3/+7
2020-02-11AMReX will remove AMREX_DEVICE_COMPILE soon because of DPC++. So we now nee...Gravatar Weiqun Zhang 3-12/+12
2020-02-10Langmuir Analysis: absolute dfloat to 0Gravatar Axel Huebl 2-4/+7
2020-02-10Python Compile in Single PrecisionGravatar Axel Huebl 4-14/+28
2020-02-10CI: Single Precision TestsGravatar Axel Huebl 1-0/+36
2020-02-10wp_parser::nvars is not neededGravatar Weiqun Zhang 3-7/+0
2020-02-10Change back.Gravatar Yinjian Zhao 2-7/+4
2020-02-10template Parser so that it works for any number of variablesGravatar Weiqun Zhang 24-288/+196
2020-02-10mention yt installation script in docGravatar MaxThevenet 1-0/+1
2020-02-10Correct compilation parameter DIM=Gravatar Remi Lehe 1-1/+1
2020-02-10using continue instead of the incorrect return if np==0 in BTD Particle Buffe...Gravatar RevathiJambunathan 1-2/+2
2020-02-10Improve documentation on how to install ytGravatar Remi Lehe 1-14/+2
2020-02-09Travis: Pip Instead of Conda, CachesGravatar Axel Huebl 1-8/+15
2020-02-07Update Docs/source/visualization/reduced_diags.rstGravatar Yinjian Zhao 1-1/+1
2020-02-07DocumentationGravatar Yinjian Zhao 1-1/+1
2020-02-07DocumentationGravatar Yinjian Zhao 2-13/+11
2020-02-07add some constGravatar Andrew Myers 1-5/+5
2020-02-07MinorGravatar Yinjian Zhao 1-2/+2
2020-02-07Add aux1File = Tools/read_raw_data.py.Gravatar Yinjian Zhao 1-0/+1
2020-02-07Use .Gravatar Yinjian Zhao 1-4/+5
2020-02-07Update Tools/read_raw_data.pyGravatar MaxThevenet 1-1/+1
2020-02-07Update Tools/read_raw_data.pyGravatar MaxThevenet 1-1/+1