🎮 OrangeQuest Marketplace

Local Testing Environment

🔌 Connection Tests

💰 Marketplace Tests

🎮 Game Tests

📊 Test Log

' }, { name: 'Path Traversal', payload: '../../../etc/passwd' } ]; let passed = 0; for (const test of tests) { try { const response = await fetch(`/api/test?q=${encodeURIComponent(test.payload)}`); if (response.status !== 500) { passed++; log(`✅ ${test.name}: Handled safely`); } else { log(`❌ ${test.name}: Server error`); } } catch (error) { passed++; log(`✅ ${test.name}: Request blocked`); } } showStatus('marketplace-status', `Security Tests: ${passed}/${tests.length} passed`, passed === tests.length ? 'success' : 'error'); } function loadPlayerProfile() { showStatus('game-status', 'Loading player profile...', 'info'); // Simulate loading setTimeout(() => { showStatus('game-status', '✅ Player Profile Loaded', 'success'); }, 1000); } function joinBattle() { showStatus('game-status', 'Joining battle...', 'info'); setTimeout(() => { showStatus('game-status', '⚔️ Battle Joined!', 'success'); }, 1500); } function buyItem() { showStatus('game-status', 'Purchasing item...', 'info'); setTimeout(() => { showStatus('game-status', '🛡️ Item Purchased!', 'success'); }, 1200); } function clearLog() { document.getElementById('log').textContent = ''; } // Auto-test on load window.addEventListener('load', () => { log('OrangeQuest Marketplace Testing Environment Loaded'); log('Click buttons above to test different features'); testAPI(); });