Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[test] Use relative script paths instead of symlinks #163

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/animation.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div id="meshcat-pane">
</div>

<script src="main.min.js"></script>
<script src="../dist/main.min.js"></script>

<script>

Expand Down
2 changes: 1 addition & 1 deletion test/animation2.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div id="meshcat-pane">
</div>

<script src="main.min.js"></script>
<script src="../dist/main.min.js"></script>
<script>
var viewer = new MeshCat.Viewer(document.getElementById("meshcat-pane"));

Expand Down
2 changes: 1 addition & 1 deletion test/background.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div id="meshcat-pane">
</div>

<script src="main.min.js"></script>
<script src="../dist/main.min.js"></script>
<script>

// Texture of the cornell box environment as a small (256x128) equirectangular map.
Expand Down
2 changes: 1 addition & 1 deletion test/camera_control.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div id="meshcat-pane">
</div>

<script src="main.min.js"></script>
<script src="../dist/main.min.js"></script>
<script>
var viewer = new MeshCat.Viewer(document.getElementById("meshcat-pane"));
viewer.handle_command({
Expand Down
2 changes: 1 addition & 1 deletion test/controls.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div id="meshcat-pane">
</div>

<script src="main.min.js"></script>
<script src="../dist/main.min.js"></script>
<script>
var viewer = new MeshCat.Viewer(document.getElementById("meshcat-pane"));
viewer.set_control("TestButton", () => {});
Expand Down
2 changes: 1 addition & 1 deletion test/empty_scene.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div id="meshcat-pane">
</div>

<script src="main.min.js"></script>
<script src="../dist/main.min.js"></script>
<script>
var viewer = new MeshCat.Viewer(document.getElementById("meshcat-pane"));
try {
Expand Down
1 change: 0 additions & 1 deletion test/main.js

This file was deleted.

1 change: 0 additions & 1 deletion test/main.min.js

This file was deleted.

2 changes: 1 addition & 1 deletion test/meshfile_geometry_dae.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div id="meshcat-pane">
</div>

<script src="main.min.js"></script>
<script src="../dist/main.min.js"></script>
<script>
var viewer = new MeshCat.Viewer(document.getElementById("meshcat-pane"));

Expand Down
2 changes: 1 addition & 1 deletion test/meshfile_geometry_obj.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div id="meshcat-pane">
</div>

<script src="main.min.js"></script>
<script src="../dist/main.min.js"></script>
<script>
var viewer = new MeshCat.Viewer(document.getElementById("meshcat-pane"));

Expand Down
2 changes: 1 addition & 1 deletion test/meshfile_geometry_stl.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div id="meshcat-pane">
</div>

<script src="main.min.js"></script>
<script src="../dist/main.min.js"></script>
<script>
var viewer = new MeshCat.Viewer(document.getElementById("meshcat-pane"));

Expand Down
2 changes: 1 addition & 1 deletion test/meshfile_object_dae.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div id="meshcat-pane">
</div>

<script src="main.min.js"></script>
<script src="../dist/main.min.js"></script>
<script>
var viewer = new MeshCat.Viewer(document.getElementById("meshcat-pane"));

Expand Down
2 changes: 1 addition & 1 deletion test/meshfile_object_gltf.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div id="meshcat-pane">
</div>

<script src="main.min.js"></script>
<script src="../dist/main.min.js"></script>
<script>
var viewer = new MeshCat.Viewer(document.getElementById("meshcat-pane"));

Expand Down
2 changes: 1 addition & 1 deletion test/meshfile_object_obj.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div id="meshcat-pane">
</div>

<script src="main.min.js"></script>
<script src="../dist/main.min.js"></script>
<script>
var viewer = new MeshCat.Viewer(document.getElementById("meshcat-pane"));

Expand Down
2 changes: 1 addition & 1 deletion test/opacity.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<div id="meshcat-pane">
</div>

<script src="main.min.js"></script>
<script src="../dist/main.min.js"></script>
<script>
var viewer = new MeshCat.Viewer(document.getElementById("meshcat-pane"));

Expand Down
2 changes: 1 addition & 1 deletion test/orthographic_camera.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div id="meshcat-pane">
</div>

<script src="main.min.js"></script>
<script src="../dist/main.min.js"></script>
<script>
var viewer = new MeshCat.Viewer(document.getElementById("meshcat-pane"));

Expand Down
2 changes: 1 addition & 1 deletion test/render_callback.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

</div><button id="camera-button">[If you read this, the page is broken]</button>

<script src="main.min.js"></script>
<script src="../dist/main.min.js"></script>
<script>
function make_cube(size, color, position) {
let geo = new MeshCat.THREE.BoxGeometry(size, size, size);
Expand Down
2 changes: 1 addition & 1 deletion test/set_color.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div id="meshcat-pane">
</div>

<script src="main.min.js"></script>
<script src="../dist/main.min.js"></script>
<script>
var viewer = new MeshCat.Viewer(document.getElementById("meshcat-pane"));

Expand Down
2 changes: 1 addition & 1 deletion test/transparent_ellipsoid.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div id="meshcat-pane">
</div>

<script src="main.min.js"></script>
<script src="../dist/main.min.js"></script>
<script>
var viewer = new MeshCat.Viewer(document.getElementById("meshcat-pane"));
viewer.handle_command({'type': 'set_object', 'object': {'metadata': {'version': 4.5, 'type': 'Object'}, 'geometries': [{'uuid': '396744fd-087d-11ec-9957-7fbbaaa96777', 'type': 'SphereGeometry', 'radius': 1.0, 'widthSegments': 20, 'heightSegments': 20}], 'materials': [{'uuid': '396744fe-087d-11ec-9957-7fbbaaa96777', 'type': 'MeshLambertMaterial', 'color': 16711935, 'reflectivity': 0.5, 'side': 2, 'transparent': true, 'opacity': 0.5, 'linewidth': 1.0, 'wireframe': false, 'wireframeLinewidth': 1.0, 'vertexColors': 0}], 'object': {'uuid': '396744ff-087d-11ec-9957-7fbbaaa96777', 'type': 'Mesh', 'geometry': '396744fd-087d-11ec-9957-7fbbaaa96777', 'material': '396744fe-087d-11ec-9957-7fbbaaa96777', 'matrix': [0.5, 0.0, 0.0, 0.0, 0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0]}}, 'path': '/meshcat'});
Expand Down