Open nshahan opened 2 weeks ago
To Address the above issue i suggest that
Approve the Temporary Failures of the specified tests => Runtime Error: Mark the tests as expected failures. => Timeouts: Document the expected timeouts.
Bootstrap Code Update: Once the changes are in place, update the bootstrap code whose sample is given below.
Re-enable Tests: Resume running the tests after the bootstrap code has been updated.
Verify : Add more tests to the approval list if new failures are detected.
Sample 1:
import './ddc_module_loader.js'; function main() { import('./lib/main.dart').catch((error) => console.error(error)); runApp(); } main(); function runApp() { const root = document.createElement('div'); root.id = 'root'; document.body.appendChild(root); renderApp(root); } function renderApp(container) { const app = new App(); container.appendChild(app.render()); }
Sample 2:
import 'package:my_app/main.dart' as app; void main() { ddcBootstrap(() { app.main(); }); }
void ddcBootstrap(Function startApp) { loadModules().then((_) { startApp(); }).catchError((error) { print("Error loading modules: $error"); }); }
Future
Future
Future
According to me these woulde work
I'm expecting that all all expression compiler tests running in canary mode with "ddc" modules will be broken temporarily.
I'm approving these:
Feel free to add more as they are detected as failures.
These should start running again after the changes to move class hierarchy linking are landed. At that time the bootstrap code will need updates to start the app using the updated "ddc" module format.